mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 11:56:33 +01:00
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
52 lines
960 B
Nix
52 lines
960 B
Nix
{
|
|
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;
|
|
};
|
|
}
|