pythonPackges.resampy: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-26 12:18:47 -04:00 committed by Frederik Rietdijk
parent e9e5fd377e
commit 021b194680
2 changed files with 34 additions and 21 deletions

View File

@ -0,0 +1,33 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, pytest
, pytestcov
, numpy
, scipy
, cython
, six
}:
buildPythonPackage rec {
pname = "resampy";
version = "0.1.4";
src = fetchPypi {
inherit pname version;
sha256 = "cf4f149d8699af70a1b4b0769fa16fab21835d936ea7ff25e98446aa49e743d4";
};
checkInputs = [ pytest pytestcov ];
propagatedBuildInputs = [ numpy scipy cython six ];
# No tests included
doCheck = false;
meta = with stdenv.lib; {
homepage = https://github.com/bmcfee/resampy;
description = "Efficient signal resampling";
license = licenses.isc;
};
}

View File

@ -3608,27 +3608,7 @@ in {
isodate = callPackage ../development/python-modules/isodate { };
resampy = buildPythonPackage rec {
pname = "resampy";
version = "0.1.4";
name = "${pname}-${version}";
src = pkgs.fetchurl {
url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.tar.gz";
sha256 = "cf4f149d8699af70a1b4b0769fa16fab21835d936ea7ff25e98446aa49e743d4";
};
checkInputs = with self; [ pytest pytestcov ];
# No tests included
doCheck = false;
propagatedBuildInputs = with self; [ numpy scipy cython six ];
meta = {
homepage = https://github.com/bmcfee/resampy;
description = "Efficient signal resampling";
license = licenses.isc;
};
};
resampy = callPackage ../development/python-modules/resampy { };
restructuredtext_lint = callPackage ../development/python-modules/restructuredtext_lint { };