depot/third_party/nixpkgs/pkgs/development/python-modules/xarray/default.nix
Default email 88abffb7d2 Project import generated by Copybara.
GitOrigin-RevId: bc9b956714ed6eac5f8888322aac5bc41389defa
2021-09-18 12:52:07 +02:00

34 lines
731 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, numpy
, pandas
, setuptools
, isPy3k
, setuptools-scm
}:
buildPythonPackage rec {
pname = "xarray";
version = "0.19.0";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "3a365ce09127fc841ba88baa63f37ca61376ffe389a6c5e66d52f2c88c23a62b";
};
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [ numpy pandas setuptools ];
checkInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "xarray" ];
meta = {
description = "N-D labeled arrays and datasets in Python";
homepage = "https://github.com/pydata/xarray";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fridh ];
};
}