28 lines
673 B
Nix
28 lines
673 B
Nix
{ stdenv, buildPythonPackage, fetchPypi, pytest, mock }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "cloudpickle";
|
|
version = "0.5.3";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "54858c7b7dc763ed894ff91059c1d0b017d593fe23850d3d8d75f47d98398197";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|