47 lines
939 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
redis,
redisTestHook,
setuptools,
unittestCheckHook,
}:
buildPythonPackage rec {
pname = "walrus";
version = "0.9.5";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "coleifer";
repo = "walrus";
tag = version;
hash = "sha256-iZe0jqIzbGKjkhlVwJQXPz9UTBzLcnnO2IuKa3sHaMw=";
};
build-system = [ setuptools ];
dependencies = [ redis ];
nativeCheckInputs = [
unittestCheckHook
redisTestHook
];
pythonImportsCheck = [ "walrus" ];
__darwinAllowLocalNetworking = true;
meta = with lib; {
description = "Lightweight Python utilities for working with Redis";
homepage = "https://github.com/coleifer/walrus";
changelog = "https://github.com/coleifer/walrus/blob/${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ mbalatsko ];
};
}