2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, buildPythonPackage, fetchPypi, isPy27, pytest, mock }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cloudpickle";
|
2020-12-07 07:45:13 +00:00
|
|
|
version = "1.6.0";
|
2020-06-15 15:56:04 +00:00
|
|
|
disabled = isPy27; # abandoned upstream
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-12-07 07:45:13 +00:00
|
|
|
sha256 = "9bc994f9e9447593bd0a45371f0e7ac7333710fcf64a4eb9834bf149f4ef2f32";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ pytest mock ];
|
|
|
|
|
|
|
|
# See README for tests invocation
|
|
|
|
checkPhase = ''
|
|
|
|
PYTHONPATH=$PYTHONPATH:'.:tests' py.test
|
|
|
|
'';
|
|
|
|
|
|
|
|
# TypeError: cannot serialize '_io.FileIO' object
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Extended pickling support for Python objects";
|
|
|
|
homepage = "https://github.com/cloudpipe/cloudpickle";
|
|
|
|
license = with licenses; [ bsd3 ];
|
|
|
|
};
|
|
|
|
}
|