Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at gcc-offload 54 lines 978 B 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 = "2024.10.0"; 17 pyproject = true; 18 19 disabled = pythonOlder "3.10"; 20 21 src = fetchFromGitHub { 22 owner = "pydata"; 23 repo = "xarray"; 24 rev = "refs/tags/v${version}"; 25 hash = "sha256-s5MvHp2OkomD3xNYzj9oKlVLMgHZDQRBJM6vgOAv1jQ="; 26 }; 27 28 build-system = [ 29 setuptools 30 setuptools-scm 31 ]; 32 33 dependencies = [ 34 numpy 35 packaging 36 pandas 37 ]; 38 39 nativeCheckInputs = [ 40 pytestCheckHook 41 ]; 42 43 pythonImportsCheck = [ "xarray" ]; 44 45 meta = { 46 changelog = "https://github.com/pydata/xarray/blob/${src.rev}/doc/whats-new.rst"; 47 description = "N-D labeled arrays and datasets in Python"; 48 homepage = "https://github.com/pydata/xarray"; 49 license = lib.licenses.asl20; 50 maintainers = with lib.maintainers; [ 51 doronbehar 52 ]; 53 }; 54}