tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
python312Packages.actdiag: drop nose dependency
Sigmanificient
2 years ago
09d128d4
1d4fbfc0
+25
-8
2 changed files
expand all
collapse all
unified
split
pkgs
development
python-modules
actdiag
default.nix
fix_test_generate.patch
+3
-8
pkgs/development/python-modules/actdiag/default.nix
···
3
3
blockdiag,
4
4
buildPythonPackage,
5
5
fetchFromGitHub,
6
6
-
nose,
7
6
pytestCheckHook,
8
7
pythonOlder,
9
8
setuptools,
···
23
22
hash = "sha256-WmprkHOgvlsOIg8H77P7fzEqxGnj6xaL7Df7urRkg3o=";
24
23
};
25
24
25
25
+
patches = [ ./fix_test_generate.patch ];
26
26
+
26
27
build-system = [ setuptools ];
27
28
28
29
propagatedBuildInputs = [ blockdiag ];
29
30
30
30
-
# tests rely on nose
31
31
-
doCheck = pythonOlder "3.12";
32
32
-
33
33
-
nativeCheckInputs = [
34
34
-
nose
35
35
-
pytestCheckHook
36
36
-
];
31
31
+
nativeCheckInputs = [ pytestCheckHook ];
37
32
38
33
pytestFlagsArray = [ "src/actdiag/tests/" ];
39
34
+22
pkgs/development/python-modules/actdiag/fix_test_generate.patch
···
1
1
+
diff --git a/src/actdiag/tests/test_generate_diagram.py b/src/actdiag/tests/test_generate_diagram.py
2
2
+
index c5ee3d5..a74a151 100644
3
3
+
--- a/src/actdiag/tests/test_generate_diagram.py
4
4
+
+++ b/src/actdiag/tests/test_generate_diagram.py
5
5
+
@@ -16,16 +16,6 @@
6
6
+
import os
7
7
+
8
8
+
from blockdiag.tests.test_generate_diagram import (get_diagram_files,
9
9
+
- testcase_generator)
10
10
+
+ test_generate_with_separate)
11
11
+
12
12
+
-import actdiag.command
13
13
+
14
14
+
-
15
15
+
-def test_generate():
16
16
+
- mainfunc = actdiag.command.main
17
17
+
- basepath = os.path.dirname(__file__)
18
18
+
- files = get_diagram_files(basepath)
19
19
+
- options = []
20
20
+
-
21
21
+
- for testcase in testcase_generator(basepath, mainfunc, files, options):
22
22
+
- yield testcase