Commit ad79eb47 authored by Sigmanificient's avatar Sigmanificient
Browse files

python312Packages.pydy: drop nose dependency

parent 4c30668e
Loading
Loading
Loading
Loading
+21 −15
Original line number Diff line number Diff line
@@ -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 ];
  };
}