Skip to content

Commit 30be25c

Browse files
authored
python312Packages.pydy: drop nose dependency (#336241)
2 parents 6b1eea3 + ad79eb4 commit 30be25c

File tree

1 file changed

+21
-15
lines changed

1 file changed

+21
-15
lines changed

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

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,47 +6,53 @@
66
scipy,
77
sympy,
88
setuptools,
9-
nose,
9+
pytestCheckHook,
1010
cython,
11+
fetchpatch2,
1112
}:
1213

1314
buildPythonPackage rec {
1415
pname = "pydy";
1516
version = "0.7.1";
16-
1717
pyproject = true;
18-
build-system = [ setuptools ];
1918

2019
src = fetchPypi {
2120
inherit pname version;
2221
hash = "sha256-aaRinJMGR8v/OVkeSp1hA4+QLOrmDWq50wvA6b/suvk=";
2322
};
2423

24+
build-system = [ setuptools ];
25+
26+
patches = [
27+
# Migrate tests to pytest
28+
(fetchpatch2 {
29+
url = "https://github.com/pydy/pydy/commit/e679638fecf80def25f5ed20f01c49c5d931e4d8.patch?full_index=1";
30+
hash = "sha256-wJmYkyc5Yh0152OyNL5ZbZJxmpX7C65Hqrms4gm3zt0=";
31+
excludes = [
32+
".github/workflows/oldest.yml"
33+
".github/workflows/tests.yml"
34+
"bin/test"
35+
];
36+
})
37+
];
38+
2539
dependencies = [
2640
numpy
2741
scipy
2842
sympy
2943
];
3044

3145
nativeCheckInputs = [
32-
nose
46+
pytestCheckHook
3347
cython
3448
];
3549

36-
checkPhase = ''
37-
runHook preCheck
38-
39-
nosetests pydy
40-
41-
runHook postCheck
42-
'';
43-
4450
pythonImportsCheck = [ "pydy" ];
4551

46-
meta = with lib; {
52+
meta = {
4753
description = "Python tool kit for multi-body dynamics";
4854
homepage = "http://pydy.org";
49-
license = licenses.bsd3;
50-
maintainers = [ ];
55+
license = lib.licenses.bsd3;
56+
maintainers = with lib.maintainers; [ sigmanificient ];
5157
};
5258
}

0 commit comments

Comments
 (0)