1{ stdenv, buildPythonPackage, fetchPypi, pytest, mock }:
2
3buildPythonPackage rec {
4 pname = "cloudpickle";
5 version = "0.5.5";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "6ea4b548f61a4f616b065182716318c7dced8c053517f35ac59cec22802daf3d";
10 };
11
12 buildInputs = [ pytest mock ];
13
14 # See README for tests invocation
15 checkPhase = ''
16 PYTHONPATH=$PYTHONPATH:'.:tests' py.test
17 '';
18
19 # TypeError: cannot serialize '_io.FileIO' object
20 doCheck = false;
21
22 meta = with stdenv.lib; {
23 description = "Extended pickling support for Python objects";
24 homepage = https://github.com/cloudpipe/cloudpickle;
25 license = with licenses; [ bsd3 ];
26 };
27}