1{ lib
2, stdenv
3, buildPythonPackage
4, cython
5, decorator
6, fetchPypi
7, numpy
8, pytestCheckHook
9, pythonOlder
10, scipy
11, six
12}:
13
14buildPythonPackage rec {
15 pname = "pysptk";
16 version = "0.2.2";
17 format = "setuptools";
18
19 disabled = pythonOlder "3.7";
20
21 src = fetchPypi {
22 inherit pname version;
23 hash = "sha256-QUgBA/bchWTaJ54u/ubcRfoVcDeV77wSnHOjkgfVauE=";
24 };
25
26 PYSPTK_BUILD_VERSION = 0;
27
28 nativeBuildInputs = [
29 cython
30 ];
31
32 propagatedBuildInputs = [
33 decorator
34 numpy
35 scipy
36 six
37 ];
38
39 # Tests are not part of the PyPI releases
40 doCheck = false;
41
42 pythonImportsCheck = [
43 "pysptk"
44 ];
45
46 meta = with lib; {
47 broken = stdenv.isDarwin;
48 description = "Wrapper for Speech Signal Processing Toolkit (SPTK)";
49 homepage = "https://pysptk.readthedocs.io/";
50 license = licenses.mit;
51 maintainers = with maintainers; [ hyphon81 ];
52 };
53}