blob: 2cda2fdc5002091f347e9d5f8037443ebe10e920 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
meson-python,
cython,
pytestCheckHook,
numpy,
}:
buildPythonPackage rec {
pname = "pywavelets";
version = "1.9.0";
pyproject = true;
src = fetchFromGitHub {
owner = "PyWavelets";
repo = "pywt";
tag = "v${version}";
hash = "sha256-UVQWZPuOyUPcWI3cV2u+jQyAZN/RV3aKAT6BQxqRE4M=";
};
build-system = [
meson-python
cython
numpy
];
dependencies = [ numpy ];
nativeCheckInputs = [ pytestCheckHook ];
preCheck = ''
cd $out
'';
# ensure compiled modules are present
pythonImportsCheck = [
"pywt"
"pywt._extensions._cwt"
"pywt._extensions._dwt"
"pywt._extensions._pywt"
"pywt._extensions._swt"
];
meta = {
description = "Wavelet transform module";
homepage = "https://github.com/PyWavelets/pywt";
changelog = "https://github.com/PyWavelets/pywt/releases/tag/${src.tag}";
license = lib.licenses.mit;
};
}
|