2018-03-31 18:43:11 +02:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, pytest, mock }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cloudpickle";
|
2019-10-24 08:47:27 +02:00
|
|
|
version = "1.2.2";
|
2018-03-31 18:43:11 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-24 08:47:27 +02:00
|
|
|
sha256 = "922401d7140e133253ff5fab4faa4a1166416066453a783b00b507dca93f8859";
|
2018-03-31 18:43:11 +02: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 03:11:51 +02:00
|
|
|
homepage = "https://github.com/cloudpipe/cloudpickle";
|
2018-03-31 18:43:11 +02:00
|
|
|
license = with licenses; [ bsd3 ];
|
|
|
|
};
|
|
|
|
}
|