python312Packages.pydy: drop nose dependency (#336241)

This commit is contained in:
Emily
2024-09-22 22:57:18 +01:00
committed by GitHub
@@ -6,22 +6,36 @@
scipy,
sympy,
setuptools,
nose,
pytestCheckHook,
cython,
fetchpatch2,
}:
buildPythonPackage rec {
pname = "pydy";
version = "0.7.1";
pyproject = true;
build-system = [ setuptools ];
src = fetchPypi {
inherit pname version;
hash = "sha256-aaRinJMGR8v/OVkeSp1hA4+QLOrmDWq50wvA6b/suvk=";
};
build-system = [ setuptools ];
patches = [
# Migrate tests to pytest
(fetchpatch2 {
url = "https://github.com/pydy/pydy/commit/e679638fecf80def25f5ed20f01c49c5d931e4d8.patch?full_index=1";
hash = "sha256-wJmYkyc5Yh0152OyNL5ZbZJxmpX7C65Hqrms4gm3zt0=";
excludes = [
".github/workflows/oldest.yml"
".github/workflows/tests.yml"
"bin/test"
];
})
];
dependencies = [
numpy
scipy
@@ -29,24 +43,16 @@ buildPythonPackage rec {
];
nativeCheckInputs = [
nose
pytestCheckHook
cython
];
checkPhase = ''
runHook preCheck
nosetests pydy
runHook postCheck
'';
pythonImportsCheck = [ "pydy" ];
meta = with lib; {
meta = {
description = "Python tool kit for multi-body dynamics";
homepage = "http://pydy.org";
license = licenses.bsd3;
maintainers = [ ];
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ sigmanificient ];
};
}