pythonPackages.kazoo: refactor move to pyhton-modules

This commit is contained in:
Chris Ostrouchov 2018-10-17 15:08:42 -04:00 committed by Frederik Rietdijk
parent ee6b3076e4
commit abc0996dd0
2 changed files with 45 additions and 33 deletions

View File

@ -0,0 +1,44 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, six
, eventlet
, gevent
, nose
, mock
, coverage
, pkgs
}:
buildPythonPackage rec {
pname = "kazoo";
version = "2.2.1";
src = fetchPypi {
inherit pname version;
sha256 = "10pb864if9qi2pq9lfb9m8f7z7ss6rml80gf1d9h64lap5crjnjj";
};
propagatedBuildInputs = [ six ];
buildInputs = [ eventlet gevent nose mock coverage pkgs.openjdk8 ];
# not really needed
preBuild = ''
sed -i '/flake8/d' setup.py
'';
preCheck = ''
sed -i 's/test_unicode_auth/noop/' kazoo/tests/test_client.py
'';
# tests take a long time to run and leave threads hanging
doCheck = false;
#ZOOKEEPER_PATH = "${pkgs.zookeeper}";
meta = with stdenv.lib; {
homepage = "https://kazoo.readthedocs.org";
description = "Higher Level Zookeeper Client";
license = licenses.asl20;
};
}

View File

@ -3031,39 +3031,7 @@ in {
zake = callPackage ../development/python-modules/zake { }; zake = callPackage ../development/python-modules/zake { };
kazoo = buildPythonPackage rec { kazoo = callPackage ../development/python-modules/kazoo { };
name = "kazoo-${version}";
version = "2.2.1";
src = pkgs.fetchurl {
url = "mirror://pypi/k/kazoo/${name}.tar.gz";
sha256 = "10pb864if9qi2pq9lfb9m8f7z7ss6rml80gf1d9h64lap5crjnjj";
};
propagatedBuildInputs = with self; [
six
];
buildInputs = with self; [
eventlet gevent nose mock coverage pkgs.openjdk8
];
# not really needed
preBuild = ''
sed -i '/flake8/d' setup.py
'';
preCheck = ''
sed -i 's/test_unicode_auth/noop/' kazoo/tests/test_client.py
'';
# tests take a long time to run and leave threads hanging
doCheck = false;
#ZOOKEEPER_PATH = "${pkgs.zookeeper}";
meta = with stdenv.lib; {
homepage = "https://kazoo.readthedocs.org";
};
};
FormEncode = callPackage ../development/python-modules/FormEncode { }; FormEncode = callPackage ../development/python-modules/FormEncode { };