{ stdenv, buildPythonPackage, fetchPypi, pytest, mock }: buildPythonPackage rec { pname = "cloudpickle"; version = "0.2.2"; src = fetchPypi { inherit pname version; sha256 = "0x4fbycipkhfax7lydaxcnc14g42g274qba17j51shr5gbq6m8lx"; }; 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 ]; }; }