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