1{ lib, buildPythonPackage, fetchPypi, thrift, isPy3k }: 2 3let 4 5 thrift' = thrift.overridePythonAttrs (old: rec { 6 version = "0.9.3"; 7 src= fetchPypi { 8 inherit (old) pname; 9 inherit version; 10 sha256 = "0zl7cgckqy9j5vq8wyfzw82q1blkdpsblnmhv8c6ffcxs4xkvg6z"; 11 }; 12 }); 13 14in 15 16buildPythonPackage rec { 17 pname = "pycassa"; 18 version = "1.11.2"; 19 20 src = fetchPypi { 21 inherit pname version; 22 sha256 = "1nsqjzgn6v0rya60dihvbnrnq1zwaxl2qwf0sr08q9qlkr334hr6"; 23 }; 24 25 disabled = isPy3k; 26 27 # Tests are not executed since they require a cassandra up and 28 # running 29 doCheck = false; 30 31 propagatedBuildInputs = [ thrift' ]; 32 33 meta = with lib; { 34 description = "A python client library for Apache Cassandra"; 35 homepage = "https://github.com/pycassa/pycassa"; 36 license = licenses.mit; 37 }; 38}