depot/third_party/nixpkgs/pkgs/development/python-modules/cloudpickle/default.nix
Default email 889482aab3 Project import generated by Copybara.
GitOrigin-RevId: f2537a505d45c31fe5d9c27ea9829b6f4c4e6ac5
2022-06-26 12:26:21 +02:00

46 lines
917 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, psutil
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "cloudpickle";
version = "2.1.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-uyM+h2pYSR2VkKZ2+Tx6VHOgj3R9Wrnff5zlZLPnk44=";
};
checkInputs = [
psutil
pytestCheckHook
];
pythonImportsCheck = [
"cloudpickle"
];
disabledTestPaths = [
# ModuleNotFoundError: No module named '_cloudpickle_testpkg'
"tests/cloudpickle_test.py"
];
disabledTests = [
# TypeError: cannot pickle 'EncodedFile' object
"test_pickling_special_file_handles"
];
meta = with lib; {
description = "Extended pickling support for Python objects";
homepage = "https://github.com/cloudpipe/cloudpickle";
license = with licenses; [ bsd3 ];
maintainers = with maintainers; [ ];
};
}