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