Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 9ae60cff0c20
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 18faa091c6ce
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Oct 11, 2019

  1. pythonPackages.cassandra-driver: 3.18.0 -> 3.19.0

    Jonathan Ringer committed Oct 11, 2019

    Verified

    This commit was signed with the committer’s verified signature.
    tadeokondrak Tadeo Kondrak
    Copy the full SHA
    18faa09 View commit details
Showing with 20 additions and 44 deletions.
  1. +20 −44 pkgs/development/python-modules/cassandra-driver/default.nix
64 changes: 20 additions & 44 deletions pkgs/development/python-modules/cassandra-driver/default.nix
Original file line number Diff line number Diff line change
@@ -1,70 +1,46 @@
{ stdenv
, libev
, buildPythonPackage
, fetchPypi
{ stdenv, lib, buildPythonPackage, fetchPypi, python, pythonOlder
, cython
, futures
, six
, python
, scales
, eventlet
, twisted
, futures
, libev
, mock
, gevent
, nose
, pytest
, pytz
, pyyaml
, scales
, six
, sure
, pythonOlder
}:

buildPythonPackage rec {
pname = "cassandra-driver";
version = "3.18.0";
version = "3.19.0";

src = fetchPypi {
inherit pname version;
sha256 = "1w9a7fdl626m977cjj9zclh4a0mr3s4q9jpwm1fsmpi7v3gbribi";
sha256 = "1vy9yzsd9c29irq99m8lpkgnc634waai2phvr6b89pmmdirp2wm9";
};

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";
};
}))
];

nativeBuildInputs = [ cython ];
buildInputs = [ libev ];
propagatedBuildInputs = [ six ]
++ stdenv.lib.optionals (pythonOlder "3.4") [ futures ];
++ lib.optionals (pythonOlder "3.4") [ futures ];

postPatch = ''
sed -i "s/<=1.0.1//" setup.py
'';
checkInputs = [ eventlet mock nose pytest pytz pyyaml sure ];

# 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 = ''
${python.interpreter} setup.py gevent_nosetests
${python.interpreter} setup.py eventlet_nosetests
pytest tests/unit \
--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 ];

# Could not get tests running
doCheck = false;

meta = with stdenv.lib; {
homepage = http://datastax.github.io/python-driver/;
meta = with lib; {
description = "A Python client driver for Apache Cassandra";
homepage = "http://datastax.github.io/python-driver";
license = licenses.asl20;
};

}