summary refs log tree commit diff
path: root/pkgs/development/python-modules/resampy/default.nix
blob: 43088cf5122ecfc71d15e1313ca757cf5dbe0332 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{ stdenv
, buildPythonPackage
, fetchFromGitHub
, pytest
, pytestcov
, 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 pytestcov ];
  propagatedBuildInputs = [ numpy scipy cython numba six ];

  checkPhase = ''
    pytest tests
  '';

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

}