44 lines
849 B
Nix
44 lines
849 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
six,
|
|
twisted,
|
|
nixosTests,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "txredisapi";
|
|
version = "1.4.11";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "IlyaSkriblovsky";
|
|
repo = "txredisapi";
|
|
tag = version;
|
|
hash = "sha256-gPXkpUcHAuXx/olB/nKstRrfIUFFLf4gFyv7ReRvV2E=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
propagatedBuildInputs = [
|
|
six
|
|
twisted
|
|
]
|
|
++ twisted.optional-dependencies.tls;
|
|
|
|
pythonImportsCheck = [ "txredisapi" ];
|
|
|
|
doCheck = false;
|
|
|
|
passthru.tests.unit-tests = nixosTests.txredisapi;
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/IlyaSkriblovsky/txredisapi";
|
|
description = "Non-blocking redis client for python";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ dandellion ];
|
|
};
|
|
}
|