Skip to content

Commit

Permalink
pythonPackages.resampy: enable tests
Browse files Browse the repository at this point in the history
  • Loading branch information
worldofpeace committed Mar 5, 2019
1 parent 8e1afe7 commit d830bfb
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions pkgs/development/python-modules/resampy/default.nix
@@ -1,6 +1,6 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, fetchFromGitHub
, pytest
, pytestcov
, numpy
Expand All @@ -14,16 +14,20 @@ buildPythonPackage rec {
pname = "resampy";
version = "0.2.1";

src = fetchPypi {
inherit pname version;
sha256 = "7f6912ca2b746eb9bcdc05c52fcef088f0b7ba1ca6ee0b2d0a359d18fc57f8f8";
# No tests in PyPi Archive
src = fetchFromGitHub {
owner = "bmcfee";
repo = pname;
rev = version;
sha256 = "0a2bxj042y62dimm2i4vglbhpwbybam07mcl67cb6pmfsw9fbqhj";
};

checkInputs = [ pytest pytestcov ];
propagatedBuildInputs = [ numpy scipy cython numba six ];

# No tests included
doCheck = false;
checkPhase = ''
pytest tests
'';

meta = with stdenv.lib; {
homepage = https://github.com/bmcfee/resampy;
Expand Down

0 comments on commit d830bfb

Please sign in to comment.