1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 six,
7 twisted,
8 nixosTests,
9}:
10
11buildPythonPackage rec {
12 pname = "txredisapi";
13 version = "1.4.11";
14 format = "pyproject";
15
16 src = fetchFromGitHub {
17 owner = "IlyaSkriblovsky";
18 repo = "txredisapi";
19 tag = version;
20 hash = "sha256-gPXkpUcHAuXx/olB/nKstRrfIUFFLf4gFyv7ReRvV2E=";
21 };
22
23 nativeBuildInputs = [ setuptools ];
24
25 propagatedBuildInputs = [
26 six
27 twisted
28 ]
29 ++ twisted.optional-dependencies.tls;
30
31 pythonImportsCheck = [ "txredisapi" ];
32
33 doCheck = false;
34
35 passthru.tests.unit-tests = nixosTests.txredisapi;
36
37 meta = with lib; {
38 homepage = "https://github.com/IlyaSkriblovsky/txredisapi";
39 description = "Non-blocking redis client for python";
40 license = licenses.asl20;
41 maintainers = with maintainers; [ dandellion ];
42 };
43}