nixpkgs/pkgs/development/python-modules/cloudpickle/default.nix

28 lines
673 B
Nix
Raw Normal View History

{ stdenv, buildPythonPackage, fetchPypi, pytest, mock }:
buildPythonPackage rec {
pname = "cloudpickle";
2018-05-28 14:17:29 +02:00
version = "0.5.3";
src = fetchPypi {
inherit pname version;
2018-05-28 14:17:29 +02:00
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 ];
};
}