depot/third_party/nixpkgs/pkgs/development/python-modules/xarray-einstats/default.nix
Default email 3a4df29a92 Project import generated by Copybara.
GitOrigin-RevId: 3d7435c638baffaa826b85459df0fff47f12317d
2022-06-16 19:23:12 +02:00

59 lines
965 B
Nix

{ lib
, buildPythonPackage
, einops
, fetchFromGitHub
, flit-core
, numba
, numpy
, pandas
, pytestCheckHook
, pythonOlder
, scipy
, xarray
}:
buildPythonPackage rec {
pname = "xarray-einstats";
version = "0.2.2";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "arviz-devs";
repo = pname;
rev = "v${version}";
hash = "sha256-yc2dWKL9XhSSB7rUKS2uDCa4IyH/ajUf632Of2beY+4=";
};
nativeBuildInputs = [
flit-core
];
propagatedBuildInputs = [
numpy
scipy
xarray
];
checkInputs = [
einops
numba
pytestCheckHook
];
pythonImportsCheck = [
"xarray_einstats"
];
pytestFlagsArray = [
"src/xarray_einstats/tests/"
];
meta = with lib; {
description = "Stats, linear algebra and einops for xarray";
homepage = "https://github.com/arviz-devs/xarray-einstats";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}