Skip to content

Commit 6deae3a

Browse files
authored
python312Packages.more-properties: cleanup & disable on python >= 3.13 (#384354)
2 parents defe2d3 + 34f8215 commit 6deae3a

File tree

1 file changed

+17
-11
lines changed
  • pkgs/development/python-modules/more-properties

1 file changed

+17
-11
lines changed

pkgs/development/python-modules/more-properties/default.nix

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,43 @@
11
{
22
lib,
33
buildPythonPackage,
4-
pythonOlder,
4+
pythonAtLeast,
55
fetchFromGitHub,
6+
setuptools,
67
pytestCheckHook,
78
}:
89

910
buildPythonPackage rec {
1011
pname = "more-properties";
1112
version = "1.1.1";
13+
pyproject = true;
1214

13-
# upstream requires >= 3.6 but only 3.7 includes dataclasses
14-
disabled = pythonOlder "3.7";
15-
16-
format = "setuptools";
15+
# All tests are failing with:
16+
# AssertionError: None != 'The type of the None singleton.'
17+
disabled = pythonAtLeast "3.13";
1718

1819
src = fetchFromGitHub {
1920
owner = "madman-bob";
2021
repo = "python-more-properties";
21-
rev = version;
22+
tag = version;
2223
hash = "sha256-dKG97rw5IG19m7u3ZDBM2yGScL5cFaKBvGZxPVJaUTE=";
2324
};
2425

2526
postPatch = ''
2627
mv pypi_upload/setup.py .
2728
substituteInPlace setup.py \
28-
--replace "project_root = Path(__file__).parents[1]" "project_root = Path(__file__).parents[0]"
29-
30-
# dataclasses is included in Python 3.7
31-
substituteInPlace requirements.txt \
32-
--replace dataclasses ""
29+
--replace-fail "project_root = Path(__file__).parents[1]" "project_root = Path(__file__).parents[0]"
3330
'';
3431

32+
build-system = [
33+
setuptools
34+
];
35+
36+
pythonRemoveDeps = [
37+
# dataclasses is included in Python since 3.7
38+
"dataclasses"
39+
];
40+
3541
nativeCheckInputs = [ pytestCheckHook ];
3642

3743
pythonImportsCheck = [ "more_properties" ];

0 commit comments

Comments
 (0)