Files
nixpkgs/pkgs/development/python-modules/nexusformat/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

51 lines
968 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
h5py,
hdf5plugin,
numpy,
pytestCheckHook,
pythonOlder,
scipy,
setuptools-scm,
setuptools,
}:
buildPythonPackage rec {
pname = "nexusformat";
version = "1.0.8";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchPypi {
inherit pname version;
hash = "sha256-zsIOnWgMbUaJl3tHnpQiF3+Qy48dwKDAvFlg6z8hW/M=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [
h5py
hdf5plugin
numpy
scipy
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "nexusformat.nexus" ];
meta = {
description = "Python API to open, create, and manipulate NeXus data written in the HDF5 format";
homepage = "https://github.com/nexpy/nexusformat";
changelog = "https://github.com/nexpy/nexusformat/releases/tag/v${version}";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ oberth-effect ];
};
}