mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 00:33:10 +00:00
73d5c7e547
python37Packages.cassandra-driver: 3.17.1 -> 3.18.0
71 lines
1.4 KiB
Nix
71 lines
1.4 KiB
Nix
{ stdenv
|
|
, libev
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, cython
|
|
, futures
|
|
, six
|
|
, python
|
|
, scales
|
|
, eventlet
|
|
, twisted
|
|
, mock
|
|
, gevent
|
|
, nose
|
|
, pytz
|
|
, pyyaml
|
|
, sure
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "cassandra-driver";
|
|
version = "3.18.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "1w9a7fdl626m977cjj9zclh4a0mr3s4q9jpwm1fsmpi7v3gbribi";
|
|
};
|
|
|
|
buildInputs = [
|
|
libev
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
# NOTE: next version will work with cython 0.29
|
|
# Requires 'Cython!=0.25,<0.29,>=0.20'
|
|
(cython.overridePythonAttrs(old: rec {
|
|
pname = "Cython";
|
|
version = "0.28.3";
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "1aae6d6e9858888144cea147eb5e677830f45faaff3d305d77378c3cba55f526";
|
|
};
|
|
}))
|
|
];
|
|
|
|
propagatedBuildInputs = [ six ]
|
|
++ stdenv.lib.optionals (pythonOlder "3.4") [ futures ];
|
|
|
|
postPatch = ''
|
|
sed -i "s/<=1.0.1//" setup.py
|
|
'';
|
|
|
|
checkPhase = ''
|
|
${python.interpreter} setup.py gevent_nosetests
|
|
${python.interpreter} setup.py eventlet_nosetests
|
|
'';
|
|
|
|
checkInputs = [ scales eventlet twisted mock gevent nose pytz pyyaml sure ];
|
|
|
|
# Could not get tests running
|
|
doCheck = false;
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = http://datastax.github.io/python-driver/;
|
|
description = "A Python client driver for Apache Cassandra";
|
|
license = licenses.asl20;
|
|
};
|
|
|
|
}
|