pythonPackages.pywavelets: disable python2, disable py3 tests

This commit is contained in:
Jonathan Ringer 2019-10-26 14:39:46 -07:00 committed by Frederik Rietdijk
parent c53e6c2866
commit e90ed4bc96

View File

@ -1,6 +1,7 @@
{ lib
, buildPythonPackage
, fetchPypi
, isPy27
, cython
, nose
, pytest
@ -10,6 +11,7 @@
buildPythonPackage rec {
pname = "PyWavelets";
version = "1.1.1";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
@ -23,14 +25,24 @@ buildPythonPackage rec {
propagatedBuildInputs = [ numpy ];
# Somehow nosetests doesn't run the tests, so let's use pytest instead
doCheck = false; # tests use relative paths, which fail to resolve
checkPhase = ''
py.test pywt/tests
'';
meta = {
# ensure compiled modules are present
pythonImportsCheck = [
"pywt"
"pywt._extensions._cwt"
"pywt._extensions._dwt"
"pywt._extensions._pywt"
"pywt._extensions._swt"
];
meta = with lib; {
description = "Wavelet transform module";
homepage = https://github.com/PyWavelets/pywt;
license = lib.licenses.mit;
license = licenses.mit;
};
}