Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 892 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, numpy 5, packaging 6, pandas 7, pytestCheckHook 8, pythonOlder 9, setuptoolsBuildHook 10, setuptools-scm 11}: 12 13buildPythonPackage rec { 14 pname = "xarray"; 15 version = "2023.2.0"; 16 format = "pyproject"; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchPypi { 21 inherit pname version; 22 hash = "sha256-qnYFAKLY+L6O/Y87J6lLKvOwqMLANzR9WV6vb/Cdinc="; 23 }; 24 25 SETUPTOOLS_SCM_PRETEND_VERSION="${version}"; 26 27 nativeBuildInputs = [ 28 setuptoolsBuildHook 29 setuptools-scm 30 ]; 31 32 propagatedBuildInputs = [ 33 numpy 34 packaging 35 pandas 36 ]; 37 38 nativeCheckInputs = [ 39 pytestCheckHook 40 ]; 41 42 pythonImportsCheck = [ 43 "xarray" 44 ]; 45 46 meta = with lib; { 47 description = "N-D labeled arrays and datasets in Python"; 48 homepage = "https://github.com/pydata/xarray"; 49 license = licenses.asl20; 50 maintainers = with maintainers; [ fridh ]; 51 }; 52}