2020-06-16 21:46:14 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, isPy27, pytest, mock }:
|
2018-03-31 17:43:11 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cloudpickle";
|
2020-06-06 07:47:01 +01:00
|
|
|
version = "1.4.1";
|
2020-06-16 21:46:14 +01:00
|
|
|
disabled = isPy27; # abandoned upstream
|
2018-03-31 17:43:11 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-06 07:47:01 +01:00
|
|
|
sha256 = "0b6258a20a143603d53b037a20983016d4e978f554ec4f36b3d0895b947099ae";
|
2018-03-31 17:43:11 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/cloudpipe/cloudpickle";
|
2018-03-31 17:43:11 +01:00
|
|
|
license = with licenses; [ bsd3 ];
|
|
|
|
};
|
|
|
|
}
|