pythonPackages.cloudpickle: Move to own file

This commit is contained in:
Elis Hirwing
2018-03-31 18:43:11 +02:00
committed by Frederik Rietdijk
parent 0ac0cf46ec
commit 66a578aa23
2 changed files with 28 additions and 25 deletions

View File

@@ -0,0 +1,27 @@
{ 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 ];
};
}