Unverified Commit a77ad58c authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

Merge pull request #231198 from bcdarwin/unbreak-paramz

python310Packages.paramz: unbreak
parents 2f3f0fd0 e7935837
Loading
Loading
Loading
Loading
+11 −2
Original line number Diff line number Diff line
{ lib, buildPythonPackage, fetchPypi, numpy, scipy, six, decorator, nose }:
{ lib, buildPythonPackage, fetchpatch, fetchPypi, numpy, scipy, six, decorator, nose }:

buildPythonPackage rec {
  pname = "paramz";
@@ -9,10 +9,19 @@ buildPythonPackage rec {
    sha256 = "0917211c0f083f344e7f1bc997e0d713dbc147b6380bc19f606119394f820b9a";
  };

  patches = [
    (fetchpatch {
      name = "remove-deprecated-numpy-uses";
      url = "https://github.com/sods/paramz/pull/38/commits/a5a0be15b12c5864b438d870b519ad17cc72cd12.patch";
      hash = "sha256-vj/amEXL9QJ7VdqJmyhv/lj8n+yuiZEARQBYWw6lgBA=";
    })
  ];

  propagatedBuildInputs = [ numpy scipy six decorator ];
  nativeCheckInputs = [ nose ];

  # Ran 113 tests in 3.082s
  pythonImportsCheck = [ "paramz" ];

  checkPhase = ''
      nosetests -v paramz/tests
  '';