2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
setuptools,
|
|
|
|
six,
|
|
|
|
twisted,
|
|
|
|
nixosTests,
|
2023-11-16 04:20:00 +00:00
|
|
|
}:
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "txredisapi";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "1.4.9";
|
|
|
|
format = "pyproject";
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "IlyaSkriblovsky";
|
|
|
|
repo = "txredisapi";
|
2023-11-16 04:20:00 +00:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-6Z2vurTAw9YHxvEiixtdxBH0YHj+Y9aTdsSkafPMZus=";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2023-11-16 04:20:00 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
six
|
|
|
|
twisted
|
2024-06-05 15:53:02 +00:00
|
|
|
] ++ twisted.optional-dependencies.tls;
|
2023-11-16 04:20:00 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "txredisapi" ];
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|