Skip to content

Commit b220ba3

Browse files
authored
python3Packages.cloudpickle: modernize (#465326)
2 parents 900a118 + 2a361f3 commit b220ba3

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

pkgs/development/python-modules/cloudpickle/default.nix

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,11 @@
22
lib,
33
buildPythonPackage,
44
fetchFromGitHub,
5-
pythonOlder,
65

76
# build-system
87
flit-core,
98

109
# tests
11-
psutil,
1210
pytestCheckHook,
1311
}:
1412

@@ -17,34 +15,32 @@ buildPythonPackage rec {
1715
version = "3.1.2";
1816
pyproject = true;
1917

20-
disabled = pythonOlder "3.6";
21-
2218
src = fetchFromGitHub {
2319
owner = "cloudpipe";
2420
repo = "cloudpickle";
2521
tag = "v${version}";
2622
hash = "sha256-BsCOEpNCNqq8PS+SdbzF1wq0LXEmtcHJs0pdt2qFw/w=";
2723
};
2824

29-
nativeBuildInputs = [ flit-core ];
25+
build-system = [ flit-core ];
3026

3127
nativeCheckInputs = [
32-
psutil
3328
pytestCheckHook
3429
];
3530

3631
pythonImportsCheck = [ "cloudpickle" ];
3732

3833
disabledTestPaths = [
3934
# ModuleNotFoundError: No module named 'psutil'
35+
# (because _make_cwd_env() overwrites $PYTHONPATH)
4036
"tests/cloudpickle_test.py"
4137
];
4238

43-
meta = with lib; {
39+
meta = {
4440
changelog = "https://github.com/cloudpipe/cloudpickle/blob/${src.tag}/CHANGES.md";
4541
description = "Extended pickling support for Python objects";
4642
homepage = "https://github.com/cloudpipe/cloudpickle";
47-
license = with licenses; [ bsd3 ];
43+
license = lib.licenses.bsd3;
4844
maintainers = [ ];
4945
};
5046
}

0 commit comments

Comments
 (0)