1{ stdenv, buildPythonPackage, fetchPypi, pytest, mock }:
2
3buildPythonPackage rec {
4 pname = "cloudpickle";
5 version = "0.8.1";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "3ea6fd33b7521855a97819b3d645f92d51c8763d3ab5df35197cd8e96c19ba6f";
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}