Skip to content

Commit 48bacf5

Browse files
authored
Merge pull request #329994 from Sigmanificient/vxi11
python312Packages.vxi11: drop nose dependency
2 parents b6a3ee7 + 67e13a1 commit 48bacf5

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

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

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
lib,
33
buildPythonPackage,
44
fetchFromGitHub,
5-
nose,
5+
pytestCheckHook,
6+
fetchpatch2,
67
}:
78

89
buildPythonPackage rec {
@@ -17,10 +18,23 @@ buildPythonPackage rec {
1718
sha256 = "1xv7chp7rm0vrvbz6q57fpwhlgjz461h08q9zgmkcl2l0w96hmsn";
1819
};
1920

20-
nativeCheckInputs = [ nose ];
21-
checkPhase = ''
22-
nosetests
23-
'';
21+
patches = [
22+
# set of patches from python-ivi/python-vxi11#47
23+
24+
# Fix deprecation warning
25+
(fetchpatch2 {
26+
url = "https://github.com/python-ivi/python-vxi11/commit/00722b1b8810ac38bfb47e8c49437055b600dfff.patch?full_index=1";
27+
hash = "sha256-fZDhg578UY/Q/2li1EmL5WTPx1OUfyebzvvBVK/IyDU=";
28+
})
29+
30+
# Removes nose dependency
31+
(fetchpatch2 {
32+
url = "https://github.com/python-ivi/python-vxi11/commit/a8ad324d645d6f7215f207f2cc2988dc49859698.patch?full_index=1";
33+
hash = "sha256-nkH6ww4jBypEmZeatEb8fpFTB7x/AMppeEmuH9a4v6I=";
34+
})
35+
];
36+
37+
nativeCheckInputs = [ pytestCheckHook ];
2438

2539
meta = with lib; {
2640
description = "VXI-11 driver for controlling instruments over Ethernet";

0 commit comments

Comments
 (0)