nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 47 lines 973 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 hatchling, 6 pytestCheckHook, 7 numpy, 8 typing-extensions, 9 xarray, 10}: 11 12buildPythonPackage rec { 13 pname = "xarray-dataclass"; 14 version = "3.0.0"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "xarray-contrib"; 19 repo = "xarray-dataclass"; 20 tag = "v${version}"; 21 hash = "sha256-NHJvrkoRhq5cPSBBMWzrWVn+3sPvveMRgTXc/NdLfuA="; 22 }; 23 24 build-system = [ 25 hatchling 26 ]; 27 28 pythonRelaxDeps = [ "xarray" ]; 29 30 dependencies = [ 31 numpy 32 typing-extensions 33 xarray 34 ]; 35 36 nativeCheckInputs = [ pytestCheckHook ]; 37 38 pythonImportsCheck = [ "xarray_dataclass" ]; 39 40 meta = { 41 description = "Xarray data creation made easy by dataclass"; 42 homepage = "https://xarray-contrib.github.io/xarray-dataclass"; 43 changelog = "https://github.com/xarray-contrib/xarray-dataclass/releases/tag/v${version}"; 44 license = lib.licenses.mit; 45 maintainers = with lib.maintainers; [ bcdarwin ]; 46 }; 47}