at master 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 numpy, 6 packaging, 7 pandas, 8 pytestCheckHook, 9 pythonOlder, 10 setuptools, 11 setuptools-scm, 12}: 13 14buildPythonPackage rec { 15 pname = "xarray"; 16 version = "2025.07.1"; 17 pyproject = true; 18 19 disabled = pythonOlder "3.10"; 20 21 src = fetchFromGitHub { 22 owner = "pydata"; 23 repo = "xarray"; 24 tag = "v${version}"; 25 hash = "sha256-UvBRGYZFkjxUYT+S4By+7xQZW6h0usQ26iFeJvWcxo0="; 26 }; 27 28 postPatch = '' 29 # don't depend on pytest-mypy-plugins 30 sed -i "/--mypy-/d" pyproject.toml 31 ''; 32 33 build-system = [ 34 setuptools 35 setuptools-scm 36 ]; 37 38 dependencies = [ 39 numpy 40 packaging 41 pandas 42 ]; 43 44 nativeCheckInputs = [ 45 pytestCheckHook 46 ]; 47 48 pythonImportsCheck = [ "xarray" ]; 49 50 meta = { 51 changelog = "https://github.com/pydata/xarray/blob/${src.tag}/doc/whats-new.rst"; 52 description = "N-D labeled arrays and datasets in Python"; 53 homepage = "https://github.com/pydata/xarray"; 54 license = lib.licenses.asl20; 55 maintainers = with lib.maintainers; [ 56 doronbehar 57 ]; 58 }; 59}