1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 setuptools-scm, 7 numpy, 8 pint, 9 xarray, 10 pytestCheckHook, 11}: 12 13buildPythonPackage rec { 14 pname = "pint-xarray"; 15 version = "0.5.1"; 16 pyproject = true; 17 18 src = fetchFromGitHub { 19 owner = "xarray-contrib"; 20 repo = "pint-xarray"; 21 tag = "v${version}"; 22 hash = "sha256-bPvLTtaROCYr8yWI6vQK7pYbBYUlsMzy7ALnufAT7Xo="; 23 }; 24 25 build-system = [ 26 setuptools 27 setuptools-scm 28 ]; 29 30 dependencies = [ 31 numpy 32 pint 33 xarray 34 ]; 35 36 nativeCheckInputs = [ 37 pytestCheckHook 38 ]; 39 40 pythonImportsCheck = [ 41 "pint_xarray" 42 ]; 43 44 meta = { 45 description = "Interface for using pint with xarray, providing convenience accessors"; 46 homepage = "https://github.com/xarray-contrib/pint-xarray"; 47 changelog = "https://github.com/xarray-contrib/pint-xarray/blob/${src.tag}/docs/whats-new.rst"; 48 license = lib.licenses.asl20; 49 maintainers = with lib.maintainers; [ doronbehar ]; 50 }; 51}