5ca88bfbb9
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
51 lines
911 B
Nix
51 lines
911 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
einops,
|
|
fetchFromGitHub,
|
|
flit-core,
|
|
numba,
|
|
numpy,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
scipy,
|
|
xarray,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "xarray-einstats";
|
|
version = "0.7.0";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "arviz-devs";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-aljjwgBJp341aQN3g1PoZPj+46x21Eu+svG1yzURhJE=";
|
|
};
|
|
|
|
nativeBuildInputs = [ flit-core ];
|
|
|
|
propagatedBuildInputs = [
|
|
numpy
|
|
scipy
|
|
xarray
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
einops
|
|
numba
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "xarray_einstats" ];
|
|
|
|
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 ];
|
|
};
|
|
}
|