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 ] ++ 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}