depot/third_party/nixpkgs/pkgs/development/python-modules/resampy/default.nix
Default email 21cecf6002 Project import generated by Copybara.
GitOrigin-RevId: dd14e5d78e90a2ccd6007e569820de9b4861a6c2
2021-07-24 08:14:16 -04:00

38 lines
667 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytest
, pytest-cov
, numpy
, scipy
, cython
, numba
, six
}:
buildPythonPackage rec {
pname = "resampy";
version = "0.2.2";
# No tests in PyPi Archive
src = fetchFromGitHub {
owner = "bmcfee";
repo = pname;
rev = version;
sha256 = "0qmkxl5sbgh0j73n667vyi7ywzh09iaync91yp1j5rrcmwsn0qfs";
};
checkInputs = [ pytest pytest-cov ];
propagatedBuildInputs = [ numpy scipy cython numba six ];
checkPhase = ''
pytest tests
'';
meta = with lib; {
homepage = "https://github.com/bmcfee/resampy";
description = "Efficient signal resampling";
license = licenses.isc;
};
}