1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 06:31:02 +00:00
nixpkgs/pkgs/development/python-modules/cloudpickle/default.nix
2018-08-25 18:02:26 +02:00

28 lines
673 B
Nix

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