pythonPackages.cassandra-driver: 3.18.0 -> 3.19.0

This commit is contained in:
Jonathan Ringer 2019-09-30 17:49:44 -07:00 committed by Jon
parent 9ae60cff0c
commit 18faa091c6

View File

@ -1,70 +1,46 @@
{ stdenv { stdenv, lib, buildPythonPackage, fetchPypi, python, pythonOlder
, libev
, buildPythonPackage
, fetchPypi
, cython , cython
, futures
, six
, python
, scales
, eventlet , eventlet
, twisted , futures
, libev
, mock , mock
, gevent
, nose , nose
, pytest
, pytz , pytz
, pyyaml , pyyaml
, scales
, six
, sure , sure
, pythonOlder
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "cassandra-driver"; pname = "cassandra-driver";
version = "3.18.0"; version = "3.19.0";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "1w9a7fdl626m977cjj9zclh4a0mr3s4q9jpwm1fsmpi7v3gbribi"; sha256 = "1vy9yzsd9c29irq99m8lpkgnc634waai2phvr6b89pmmdirp2wm9";
}; };
buildInputs = [ nativeBuildInputs = [ cython ];
libev 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 ] propagatedBuildInputs = [ six ]
++ stdenv.lib.optionals (pythonOlder "3.4") [ futures ]; ++ lib.optionals (pythonOlder "3.4") [ futures ];
postPatch = '' checkInputs = [ eventlet mock nose pytest pytz pyyaml sure ];
sed -i "s/<=1.0.1//" setup.py
'';
# ignore test files which try to do socket.getprotocolname('tcp')
# as it fails in sandbox mode due to lack of a /etc/protocols file
checkPhase = '' checkPhase = ''
${python.interpreter} setup.py gevent_nosetests pytest tests/unit \
${python.interpreter} setup.py eventlet_nosetests --ignore=tests/unit/io/test_libevreactor.py \
--ignore=tests/unit/io/test_eventletreactor.py \
--ignore=tests/unit/io/test_asyncorereactor.py
''; '';
checkInputs = [ scales eventlet twisted mock gevent nose pytz pyyaml sure ]; meta = with lib; {
# 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"; description = "A Python client driver for Apache Cassandra";
homepage = "http://datastax.github.io/python-driver";
license = licenses.asl20; license = licenses.asl20;
}; };
} }