nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 45 lines 837 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 h5py, 6 netcdf, 7 pytestCheckHook, 8 setuptools, 9 setuptools-scm, 10}: 11 12buildPythonPackage rec { 13 pname = "h5netcdf"; 14 version = "1.8.0"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "h5netcdf"; 19 repo = "h5netcdf"; 20 tag = "v${version}"; 21 hash = "sha256-m+8vdWOQb9aIg/mPeTrN20EzTj229Cit3nYgrkPlfGA="; 22 }; 23 24 build-system = [ 25 setuptools 26 setuptools-scm 27 ]; 28 29 dependencies = [ h5py ]; 30 31 nativeCheckInputs = [ 32 netcdf 33 pytestCheckHook 34 ]; 35 36 pythonImportsCheck = [ "h5netcdf" ]; 37 38 meta = { 39 description = "Pythonic interface to netCDF4 via h5py"; 40 homepage = "https://github.com/shoyer/h5netcdf"; 41 changelog = "https://github.com/h5netcdf/h5netcdf/releases/tag/${src.tag}"; 42 license = lib.licenses.bsd3; 43 maintainers = [ ]; 44 }; 45}