tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
python312Packages.blackdiag: drop nose dependency
Sigmanificient
2 years ago
f62942d4
de37b7a1
+14
-5
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
blockdiag
default.nix
+14
-5
pkgs/development/python-modules/blockdiag/default.nix
reviewed
···
5
5
ephem,
6
6
fetchFromGitHub,
7
7
fetchpatch,
8
8
+
fetchpatch2,
8
9
funcparserlib,
9
10
pillow,
10
10
-
nose,
11
11
pytestCheckHook,
12
12
pythonOlder,
13
13
reportlab,
···
36
36
url = "https://github.com/blockdiag/blockdiag/commit/20d780cad84e7b010066cb55f848477957870165.patch";
37
37
hash = "sha256-t1zWFzAsLL2EUa0nD4Eui4Y5AhAZLRmp/yC9QpzzeUA=";
38
38
})
39
39
+
# https://github.com/blockdiag/blockdiag/pull/175
40
40
+
(fetchpatch2 {
41
41
+
name = "migrate-to-pytest.patch";
42
42
+
url = "https://github.com/blockdiag/blockdiag/commit/4f4f726252084f17ecc6c524592222af09d37da4.patch";
43
43
+
hash = "sha256-OkfKJwJtb2DJRXE/8thYnisTFwcfstUFTTJHdM/qBzg=";
44
44
+
})
39
45
];
40
46
47
47
+
postPatch = ''
48
48
+
# requires network access the url-based icon
49
49
+
# and path-based icon is set to debian logo (/usr/share/pixmaps/debian-logo.png)
50
50
+
rm src/blockdiag/tests/diagrams/node_icon.diag
51
51
+
# note: this is a postPatch as `seqdiag` uses them directly
52
52
+
'';
53
53
+
41
54
build-system = [ setuptools ];
42
55
43
56
dependencies = [
···
48
61
webcolors
49
62
];
50
63
51
51
-
# tests rely on nose
52
52
-
doCheck = pythonOlder "3.12";
53
53
-
54
64
nativeCheckInputs = [
55
65
ephem
56
56
-
nose
57
66
pytestCheckHook
58
67
];
59
68