Files
nixpkgs/pkgs/development/python-modules/h5netcdf/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

47 lines
854 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
h5py,
pytestCheckHook,
netcdf4,
pythonOlder,
setuptools,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "h5netcdf";
version = "1.6.4";
pyproject = true;
src = fetchFromGitHub {
owner = "h5netcdf";
repo = "h5netcdf";
tag = "v${version}";
hash = "sha256-SFlea/ABP78GQgGkh7hscAlGfpKVnXN2zr99D9LCpeQ=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [ h5py ];
nativeCheckInputs = [
pytestCheckHook
netcdf4
];
pythonImportsCheck = [ "h5netcdf" ];
meta = {
description = "Pythonic interface to netCDF4 via h5py";
homepage = "https://github.com/shoyer/h5netcdf";
changelog = "https://github.com/h5netcdf/h5netcdf/releases/tag/${src.tag}";
license = lib.licenses.bsd3;
maintainers = [ ];
};
}