Skip to content

Commit d7a7692

Browse files
committed
python3Packages.spdx-tools: fix tests
1 parent c684921 commit d7a7692

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

pkgs/development/python-modules/spdx-tools/default.nix

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
buildPythonPackage,
55
click,
66
fetchFromGitHub,
7+
fetchpatch,
78
license-expression,
89
ply,
910
pytestCheckHook,
10-
pythonOlder,
1111
pyyaml,
1212
rdflib,
1313
semantic-version,
@@ -20,9 +20,7 @@
2020
buildPythonPackage rec {
2121
pname = "spdx-tools";
2222
version = "0.8.3";
23-
format = "pyproject";
24-
25-
disabled = pythonOlder "3.7";
23+
pyproject = true;
2624

2725
src = fetchFromGitHub {
2826
owner = "spdx";
@@ -31,12 +29,21 @@ buildPythonPackage rec {
3129
hash = "sha256-r7+RYGoq3LJYN1jYfwzb1r3fc/kL+CPd4pmGATFq8Pw=";
3230
};
3331

34-
nativeBuildInputs = [
32+
patches = [
33+
# https://github.com/spdx/tools-python/issues/844
34+
(fetchpatch {
35+
name = "beartype-0.20-compat.patch";
36+
url = "https://github.com/spdx/tools-python/pull/841/commits/3b13bd5af36a2b78f5c87fdbadc3f2601d2dcd8d.patch";
37+
hash = "sha256-8sQNGRss4R1olsw+xGps3NICyimBxKv47TaSrCcnVhA=";
38+
})
39+
];
40+
41+
build-system = [
3542
setuptools
3643
setuptools-scm
3744
];
3845

39-
propagatedBuildInputs = [
46+
dependencies = [
4047
beartype
4148
click
4249
license-expression

0 commit comments

Comments
 (0)