python3Packages.spectral-derivatives: init at 0.10

Initial packaging of spectral-derivatives.

Python library for computing spectral derivatives using Chebyshev, Fourier and Legendre.
Fetched from GitHub since PyPI source does not contain tests.
This commit is contained in:
ConstantConstantin
2026-03-31 19:34:31 +02:00
parent 0184f0f648
commit d0e4a4b1df
2 changed files with 50 additions and 0 deletions
@@ -0,0 +1,48 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
# dependencies
numpy,
scipy,
matplotlib,
# tests
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "spectral_derivatives";
version = "0.10";
pyproject = true;
src = fetchFromGitHub {
owner = "pavelkomarov";
repo = "spectral-derivatives";
tag = "v${version}";
hash = "sha256-KSx3aW2DgVr1nhtGqIO85s6c5p+1rjnrpMY4e63LLiE=";
};
build-system = [ setuptools ];
dependencies = [
numpy
scipy
matplotlib
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "specderiv" ];
meta = {
description = "Derivatives by spectral methods";
license = lib.licenses.bsd3;
homepage = "https://pavelkomarov.com/spectral-derivatives/specderiv.html";
maintainers = with lib.maintainers; [ conny ];
};
}
+2
View File
@@ -18090,6 +18090,8 @@ self: super: with self; {
spectral-cube = callPackage ../development/python-modules/spectral-cube { };
spectral-derivatives = callPackage ../development/python-modules/spectral-derivatives { };
speechbrain = callPackage ../development/python-modules/speechbrain { };
speechrecognition = callPackage ../development/python-modules/speechrecognition { };