Skip to content

Commit

Permalink
python3Packages.accupy: fix tests
Browse files Browse the repository at this point in the history
Test directory was removed from PyPi tarball.
  • Loading branch information
mweinelt committed Oct 10, 2021
1 parent 85ebdfd commit 28d34d5
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions pkgs/development/python-modules/accupy/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ lib
, buildPythonPackage
, fetchPypi
, fetchFromGitHub
, pythonOlder
, mpmath
, numpy
Expand All @@ -11,17 +11,19 @@
, pytestCheckHook
, matplotlib
, dufte
, isPy27
, perfplot
}:

buildPythonPackage rec {
pname = "accupy";
version = "0.3.6";
disabled = isPy27;
disabled = pythonOlder "3.7";

src = fetchPypi {
inherit pname version;
sha256 = "ad408f2937c22a0628fa8a73856e813c825064a14240cbfd64337d2a45a756c3";
src = fetchFromGitHub {
owner = "nschloe";
repo = pname;
rev = version;
sha256 = "0sxkwpp2xy2jgakhdxr4nh1cspqv8l89kz6s832h05pbpyc0n767";
};

nativeBuildInputs = [
Expand All @@ -39,6 +41,7 @@ buildPythonPackage rec {
] ++ lib.optional (pythonOlder "3.8") importlib-metadata;

checkInputs = [
perfplot
pytestCheckHook
matplotlib
dufte
Expand Down

0 comments on commit 28d34d5

Please sign in to comment.