pythonPackages.cassandra-driver: refactor move to python-modules
This commit is contained in:
parent
5ced81456b
commit
22a6d2be21
55
pkgs/development/python-modules/cassandra-driver/default.nix
Normal file
55
pkgs/development/python-modules/cassandra-driver/default.nix
Normal file
@ -0,0 +1,55 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pkgs
|
||||
, cython
|
||||
, futures
|
||||
, six
|
||||
, python
|
||||
, scales
|
||||
, eventlet
|
||||
, twisted
|
||||
, mock
|
||||
, gevent
|
||||
, nose
|
||||
, pytz
|
||||
, pyyaml
|
||||
, sure
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "cassandra-driver";
|
||||
version = "3.6.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1aqmy3psn12lxgp659d0zsxkirxzy5lnbnzxf9xjq1a93s3qm704";
|
||||
};
|
||||
|
||||
buildInputs = [ pkgs.libev cython ];
|
||||
|
||||
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;
|
||||
};
|
||||
|
||||
}
|
@ -1268,38 +1268,7 @@ in {
|
||||
|
||||
case = callPackage ../development/python-modules/case {};
|
||||
|
||||
cassandra-driver = buildPythonPackage rec {
|
||||
name = "cassandra-driver-3.6.0";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "mirror://pypi/c/cassandra-driver/${name}.tar.gz";
|
||||
sha256 = "1aqmy3psn12lxgp659d0zsxkirxzy5lnbnzxf9xjq1a93s3qm704";
|
||||
};
|
||||
|
||||
buildInputs = with self; [ pkgs.libev cython ];
|
||||
|
||||
propagatedBuildInputs = with self; [ futures six ];
|
||||
|
||||
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 = {
|
||||
homepage = http://datastax.github.io/python-driver/;
|
||||
description = "A Python client driver for Apache Cassandra";
|
||||
license = licenses.asl20;
|
||||
};
|
||||
};
|
||||
cassandra-driver = callPackage ../development/python-modules/cassandra-driver { };
|
||||
|
||||
cccolutils = callPackage ../development/python-modules/cccolutils {};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user