diff --git a/pkgs/development/python-modules/resampy/default.nix b/pkgs/development/python-modules/resampy/default.nix new file mode 100644 index 00000000000..8e69b423c9b --- /dev/null +++ b/pkgs/development/python-modules/resampy/default.nix @@ -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; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 5c0bc3f684c..e3f219b6ab1 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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 { };