Skip to content

Commit aa6ae0a

Browse files
authored
python313Packages.traits: fix build (NixOS#373698)
2 parents 399326e + 9f99c0e commit aa6ae0a

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

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

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@
33
buildPythonPackage,
44
fetchPypi,
55
pythonOlder,
6+
fetchpatch2,
7+
setuptools,
68
}:
79

810
buildPythonPackage rec {
911
pname = "traits";
1012
version = "6.4.3";
11-
format = "setuptools";
13+
pyproject = true;
1214

1315
disabled = pythonOlder "3.6";
1416

@@ -17,15 +19,22 @@ buildPythonPackage rec {
1719
hash = "sha256-qbv9ngwIt94H6G72TmnLlqKcIQWkO/gyzYsWL6HiL0Q=";
1820
};
1921

20-
# Circular dependency
21-
doCheck = false;
22+
patches = [
23+
(fetchpatch2 {
24+
url = "https://github.com/enthought/traits/commit/a20f2154b2c79eb8550ea9228d1a4415ff51b72a.patch";
25+
hash = "sha256-ycStcpxlvmobL3ZXaSbGrXAzk/Tkjs3BJ67lnwZpeVA=";
26+
excludes = [ ".github/*" ];
27+
})
28+
];
29+
30+
build-system = [ setuptools ];
2231

2332
pythonImportsCheck = [ "traits" ];
2433

25-
meta = with lib; {
34+
meta = {
2635
description = "Explicitly typed attributes for Python";
2736
homepage = "https://pypi.python.org/pypi/traits";
28-
license = licenses.bsd3;
29-
maintainers = [ ];
37+
license = lib.licenses.bsd3;
38+
maintainers = with lib.maintainers; [ bot-wxt1221 ];
3039
};
3140
}

0 commit comments

Comments
 (0)