1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-22 06:05:13 +00:00
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-10-06 11:56:16 +01:00
version = "0.5.6";
src = fetchPypi {
inherit pname version;
2018-10-06 11:56:16 +01:00
sha256 = "0390ecb3731ac035d74c34651460f4a683e9ef7443861712b8d56c20c2f92113";
};
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 ];
};
}