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