python310Packages.cloudpickle: 2.0.0 -> 2.1.0

main
Fabian Affolter 2 years ago committed by Jonathan Ringer
parent a543fd1bb1
commit 313d44af43
No known key found for this signature in database
GPG Key ID: 5C841D3CFDFEC4E0
  1. 40
      pkgs/development/python-modules/cloudpickle/default.nix

@ -1,28 +1,46 @@
{ lib, buildPythonPackage, fetchPypi, isPy27, pytest, mock }:
{ lib
, buildPythonPackage
, fetchPypi
, psutil
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "cloudpickle";
version = "2.0.0";
disabled = isPy27; # abandoned upstream
version = "2.1.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "5cd02f3b417a783ba84a4ec3e290ff7929009fe51f6405423cfccfadd43ba4a4";
hash = "sha256-uyM+h2pYSR2VkKZ2+Tx6VHOgj3R9Wrnff5zlZLPnk44=";
};
buildInputs = [ pytest mock ];
checkInputs = [
psutil
pytestCheckHook
];
pythonImportsCheck = [
"cloudpickle"
];
# See README for tests invocation
checkPhase = ''
PYTHONPATH=$PYTHONPATH:'.:tests' py.test
'';
disabledTestPaths = [
# ModuleNotFoundError: No module named '_cloudpickle_testpkg'
"tests/cloudpickle_test.py"
];
# TypeError: cannot serialize '_io.FileIO' object
doCheck = false;
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; [ ];
};
}

Loading…
Cancel
Save