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.9"; 14 format = "pyproject"; 15 16 src = fetchFromGitHub { 17 owner = "IlyaSkriblovsky"; 18 repo = "txredisapi"; 19 rev = "refs/tags/${version}"; 20 hash = "sha256-6Z2vurTAw9YHxvEiixtdxBH0YHj+Y9aTdsSkafPMZus="; 21 }; 22 23 nativeBuildInputs = [ setuptools ]; 24 25 propagatedBuildInputs = [ 26 six 27 twisted 28 ] ++ twisted.optional-dependencies.tls; 29 30 pythonImportsCheck = [ "txredisapi" ]; 31 32 doCheck = false; 33 34 passthru.tests.unit-tests = nixosTests.txredisapi; 35 36 meta = with lib; { 37 homepage = "https://github.com/IlyaSkriblovsky/txredisapi"; 38 description = "non-blocking redis client for python"; 39 license = licenses.asl20; 40 maintainers = with maintainers; [ dandellion ]; 41 }; 42}