mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-11-28 00:40:33 +00:00
26.11 no longer supports x86_64-darwin. Hence: - simplify: darwin && aarch64 -> darwin - remove: darwin && x86_64 Assisted-by: Codex, GPT-6.1-Sol medium
52 lines
1.0 KiB
Nix
52 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
numpy,
|
|
pytestCheckHook,
|
|
setuptools,
|
|
setuptools-scm,
|
|
scipy,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "dmsuite";
|
|
version = "0.3.0";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-IqLsHkGNgPz2yZm0QMyMMo6Mr2RsU2DPGxYpoNwC3fs=";
|
|
};
|
|
|
|
build-system = [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
dependencies = [
|
|
numpy
|
|
scipy
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
# Slight precision error probably due to different BLAS backend on Darwin
|
|
disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [
|
|
"test_cheb_scaled"
|
|
];
|
|
|
|
pythonImportsCheck = [ "dmsuite" ];
|
|
|
|
meta = {
|
|
description = "Scientific library providing a collection of spectral collocation differentiation matrices";
|
|
homepage = "https://github.com/labrosse/dmsuite";
|
|
changelog = "https://github.com/labrosse/dmsuite/releases/tag/v${version}";
|
|
license = lib.licenses.gpl2Only;
|
|
maintainers = with lib.maintainers; [ loicreynier ];
|
|
};
|
|
}
|