tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
python312Packages.mohawk: drop nose dependency
pyrox.dev
2 years ago
fbc52726
4adf1368
+13
-11
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
mohawk
default.nix
+13
-11
pkgs/development/python-modules/mohawk/default.nix
···
2
2
lib,
3
3
buildPythonPackage,
4
4
fetchPypi,
5
5
-
mock,
6
6
-
nose,
7
7
-
pytest,
5
5
+
fetchpatch2,
6
6
+
pytestCheckHook,
8
7
six,
9
8
}:
10
9
···
18
17
sha256 = "08wppsv65yd0gdxy5zwq37yp6jmxakfz4a2yx5wwq2d222my786j";
19
18
};
20
19
20
20
+
patches = [
21
21
+
(fetchpatch2 {
22
22
+
# https://github.com/kumar303/mohawk/pull/59
23
23
+
name = "nose-to-pytest.patch";
24
24
+
url = "https://github.com/kumar303/mohawk/compare/b7899166880e890f01cf2531b5686094ba08df8f...66157c7efbf6b0d18c30a9ffe5dfd84bef27bd3a.patch";
25
25
+
hash = "sha256-w3sP5XeBqOwoPGsWzYET4djYwuKPaS4OOlC3HBPD0NI=";
26
26
+
})
27
27
+
];
28
28
+
21
29
propagatedBuildInputs = [ six ];
22
30
23
23
-
nativeCheckInputs = [
24
24
-
mock
25
25
-
nose
26
26
-
pytest
27
27
-
];
31
31
+
nativeCheckInputs = [ pytestCheckHook ];
28
32
29
29
-
checkPhase = ''
30
30
-
pytest mohawk/tests.py
31
31
-
'';
33
33
+
pytestFlagsArray = [ "mohawk/tests.py" ];
32
34
33
35
meta = {
34
36
description = "Python library for Hawk HTTP authorization";