mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 13:13:33 +00:00
28 lines
675 B
Nix
28 lines
675 B
Nix
{ stdenv, buildPythonPackage, fetchPypi, pytest, mock }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "cloudpickle";
|
|
version = "1.2.2";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "922401d7140e133253ff5fab4faa4a1166416066453a783b00b507dca93f8859";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|