pythonPackages.cloudpickle: Move to own file

This commit is contained in:
Elis Hirwing 2018-03-31 18:43:11 +02:00 committed by Frederik Rietdijk
parent 0ac0cf46ec
commit 66a578aa23
2 changed files with 28 additions and 25 deletions

View File

@ -0,0 +1,27 @@
{ stdenv, buildPythonPackage, fetchPypi, pytest, mock }:
buildPythonPackage rec {
pname = "cloudpickle";
version = "0.2.2";
src = fetchPypi {
inherit pname version;
sha256 = "0x4fbycipkhfax7lydaxcnc14g42g274qba17j51shr5gbq6m8lx";
};
buildInputs = [ pytest mock ];
# See README for tests invocation
checkPhase = ''
PYTHONPATH=$PYTHONPATH:'.:tests' py.test
'';
# TypeError: cannot serialize '_io.FileIO' object
doCheck = false;
meta = with stdenv.lib; {
description = "Extended pickling support for Python objects";
homepage = https://github.com/cloudpipe/cloudpickle;
license = with licenses; [ bsd3 ];
};
}

View File

@ -1574,31 +1574,7 @@ in {
};
};
cloudpickle = buildPythonPackage rec {
name = "cloudpickle-${version}";
version = "0.2.2";
src = pkgs.fetchurl {
url = "mirror://pypi/c/cloudpickle/${name}.tar.gz";
sha256 = "0x4fbycipkhfax7lydaxcnc14g42g274qba17j51shr5gbq6m8lx";
};
buildInputs = with self; [ pytest mock ];
# See README for tests invocation
checkPhase = ''
PYTHONPATH=$PYTHONPATH:'.:tests' py.test
'';
# TypeError: cannot serialize '_io.FileIO' object
doCheck = false;
meta = {
description = "Extended pickling support for Python objects";
homepage = https://github.com/cloudpipe/cloudpickle;
license = with licenses; [ bsd3 ];
};
};
cloudpickle = callPackage ../development/python-modules/cloudpickle { };
cmdline = buildPythonPackage rec {
pname = "cmdline";