2018-03-31 16:43:11 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, pytest, mock }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cloudpickle";
|
2018-04-04 18:03:58 +00:00
|
|
|
version = "0.5.2";
|
2018-03-31 16:43:11 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-04-04 18:03:58 +00:00
|
|
|
sha256 = "b0e63dd89ed5285171a570186751bc9b84493675e99e12789e9a5dc5490ef554";
|
2018-03-31 16:43:11 +00: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";
|
|
|
|
homepage = https://github.com/cloudpipe/cloudpickle;
|
|
|
|
license = with licenses; [ bsd3 ];
|
|
|
|
};
|
|
|
|
}
|