emacsPackages.lsp-bridge: 0-unstable-2025-01-11 -> 0-unstable-2025-01-22 (#376531)
[NixPkgs.git] / pkgs / development / python-modules / pywavelets / default.nix
blob14a0a2dc60324e52493d372817ba83db5d27503b
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pythonOlder,
6   meson-python,
7   cython,
8   pytestCheckHook,
9   numpy,
12 buildPythonPackage rec {
13   pname = "pywavelets";
14   version = "1.7.0";
15   pyproject = true;
17   disabled = pythonOlder "3.9";
19   src = fetchFromGitHub {
20     owner = "PyWavelets";
21     repo = "pywt";
22     tag = "v${version}";
23     hash = "sha256-oWAF8YDvb0SdlRzSjG2BNEekBkvR3U6KQ+e2FoIs+tw=";
24   };
26   build-system = [
27     meson-python
28     cython
29     numpy
30   ];
32   dependencies = [ numpy ];
34   nativeCheckInputs = [ pytestCheckHook ];
36   preCheck = ''
37     cd $out
38   '';
40   # ensure compiled modules are present
41   pythonImportsCheck = [
42     "pywt"
43     "pywt._extensions._cwt"
44     "pywt._extensions._dwt"
45     "pywt._extensions._pywt"
46     "pywt._extensions._swt"
47   ];
49   meta = with lib; {
50     description = "Wavelet transform module";
51     homepage = "https://github.com/PyWavelets/pywt";
52     changelog = "https://github.com/PyWavelets/pywt/releases/tag/v${version}";
53     license = licenses.mit;
54   };