python310Packages.pysptk: add pythonImportsCheck

This commit is contained in:
Fabian Affolter 2022-06-06 10:53:30 +02:00 committed by GitHub
parent 44e85d3d61
commit 2001193711
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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