3
0
Fork 0
forked from mirrors/nixpkgs

python39Packages.xarray-einstats: init at 0.2.2

This commit is contained in:
Fabian Affolter 2022-05-25 22:36:26 +02:00
parent 9da2f48064
commit a7f104763d
2 changed files with 61 additions and 0 deletions

View file

@ -0,0 +1,59 @@
{ 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 ];
};
}

View file

@ -11134,6 +11134,8 @@ in {
xarray = callPackage ../development/python-modules/xarray { };
xarray-einstats = callPackage ../development/python-modules/xarray-einstats { };
xattr = callPackage ../development/python-modules/xattr { };
xbox-webapi = callPackage ../development/python-modules/xbox-webapi { };