Unverified Commit 6d91af44 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

Merge pull request #179746 from r-ryantm/auto-update/python3.10-resampy

python310Packages.resampy: 0.2.2 -> 0.3.0
parents eb94c5c5 30ab1697
Loading
Loading
Loading
Loading
+29 −15
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, cython
, fetchFromGitHub
, pytest
, pytest-cov
, numba
, numpy
, pytestCheckHook
, pythonOlder
, scipy
, cython
, numba
, six
}:

buildPythonPackage rec {
  pname = "resampy";
  version = "0.2.2";
  version = "0.3.0";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  # No tests in PyPi Archive
  src = fetchFromGitHub {
    owner = "bmcfee";
    repo = pname;
    rev = version;
    sha256 = "0qmkxl5sbgh0j73n667vyi7ywzh09iaync91yp1j5rrcmwsn0qfs";
    rev = "refs/tags/${version}";
    hash = "sha256-OVj5dQafIoKeA04yTGBKTinldMjEccxrdiuRFIvRzcE=";
  };

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

  checkPhase = ''
    pytest tests
  checkInputs = [
    pytestCheckHook
    scipy
  ];

  postPatch = ''
    substituteInPlace setup.cfg \
      --replace " --cov-report term-missing --cov resampy --cov-report=xml" ""
  '';

  pythonImportsCheck = [
    "resampy"
  ];

  meta = with lib; {
    homepage = "https://github.com/bmcfee/resampy";
    description = "Efficient signal resampling";
    homepage = "https://github.com/bmcfee/resampy";
    license = licenses.isc;
    maintainers = with maintainers; [ ];
  };

}