diff --git a/pkgs/development/python-modules/pysptk/default.nix b/pkgs/development/python-modules/pysptk/default.nix index 71088adf61ed..e229648bc75d 100644 --- a/pkgs/development/python-modules/pysptk/default.nix +++ b/pkgs/development/python-modules/pysptk/default.nix @@ -1,16 +1,26 @@ -{ stdenv -, lib -, buildPythonPackage, fetchPypi -, numpy, scipy, cython, six, decorator +{ lib +, stdenv +, buildPythonPackage +, cython +, decorator +, fetchPypi +, numpy +, pytestCheckHook +, pythonOlder +, scipy +, six }: buildPythonPackage rec { pname = "pysptk"; version = "0.1.21"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "sha256-AZUDI9AL57tXz7VzPGF9uEeKW4/6JsaBUiFkigl640Q="; + hash = "sha256-AZUDI9AL57tXz7VzPGF9uEeKW4/6JsaBUiFkigl640Q="; }; PYSPTK_BUILD_VERSION = 0; @@ -20,19 +30,23 @@ buildPythonPackage rec { ]; propagatedBuildInputs = [ + decorator numpy scipy six - decorator ]; - # No tests in the PyPI tarball + # Tests are not part of the PyPI releases doCheck = false; + pythonImportsCheck = [ + "pysptk" + ]; + meta = with lib; { broken = stdenv.isDarwin; - description = "A python wrapper for Speech Signal Processing Toolkit (SPTK)"; - homepage = "https://pysptk.readthedocs.io/en/latest/"; + description = "Wrapper for Speech Signal Processing Toolkit (SPTK)"; + homepage = "https://pysptk.readthedocs.io/"; license = licenses.mit; maintainers = with maintainers; [ hyphon81 ]; };