1{ lib
2, buildPythonPackage
3, fetchPypi
4, psutil
5, pytestCheckHook
6, pythonOlder
7}:
8
9buildPythonPackage rec {
10 pname = "cloudpickle";
11 version = "2.2.1";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.6";
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-2JaEuN6eNKKkOzRg+8oH0J1uJc6FjfTVpEJAQDthePU=";
19 };
20
21 nativeCheckInputs = [
22 psutil
23 pytestCheckHook
24 ];
25
26 pythonImportsCheck = [
27 "cloudpickle"
28 ];
29
30 disabledTestPaths = [
31 # ModuleNotFoundError: No module named '_cloudpickle_testpkg'
32 "tests/cloudpickle_test.py"
33 ];
34
35 disabledTests = [
36 # TypeError: cannot pickle 'EncodedFile' object
37 "test_pickling_special_file_handles"
38 ];
39
40 meta = with lib; {
41 description = "Extended pickling support for Python objects";
42 homepage = "https://github.com/cloudpipe/cloudpickle";
43 license = with licenses; [ bsd3 ];
44 maintainers = with maintainers; [ ];
45 };
46}