From 2001193711aa0eeef68dfb71d2e2e67fc040ffc9 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 6 Jun 2022 10:53:30 +0200 Subject: [PATCH] python310Packages.pysptk: add pythonImportsCheck --- .../python-modules/pysptk/default.nix | 32 +++++++++++++------ 1 file changed, 23 insertions(+), 9 deletions(-) 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 ]; };