2021-01-24 01:29:22 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, thrift, isPy3k }:
|
2017-03-15 14:50:16 +01:00
|
|
|
|
2019-01-10 02:49:17 +01:00
|
|
|
let
|
|
|
|
|
|
|
|
thrift' = thrift.overridePythonAttrs (old: rec {
|
|
|
|
version = "0.9.3";
|
|
|
|
src= fetchPypi {
|
|
|
|
inherit (old) pname;
|
|
|
|
inherit version;
|
|
|
|
sha256 = "0zl7cgckqy9j5vq8wyfzw82q1blkdpsblnmhv8c6ffcxs4xkvg6z";
|
|
|
|
};
|
|
|
|
});
|
|
|
|
|
|
|
|
in
|
|
|
|
|
2017-03-15 14:50:16 +01:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pycassa";
|
|
|
|
version = "1.11.2";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "1nsqjzgn6v0rya60dihvbnrnq1zwaxl2qwf0sr08q9qlkr334hr6";
|
|
|
|
};
|
|
|
|
|
|
|
|
disabled = isPy3k;
|
|
|
|
|
|
|
|
# Tests are not executed since they require a cassandra up and
|
|
|
|
# running
|
|
|
|
doCheck = false;
|
|
|
|
|
2019-01-10 02:49:17 +01:00
|
|
|
propagatedBuildInputs = [ thrift' ];
|
2017-03-15 14:50:16 +01:00
|
|
|
|
2021-01-24 01:29:22 +01:00
|
|
|
meta = with lib; {
|
2017-03-16 20:43:09 +01:00
|
|
|
description = "A python client library for Apache Cassandra";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/pycassa/pycassa";
|
2021-01-24 01:29:22 +01:00
|
|
|
license = licenses.mit;
|
2017-03-15 14:50:16 +01:00
|
|
|
};
|
|
|
|
}
|