1{
2 lib,
3 buildPythonPackage,
4 einops,
5 fetchFromGitHub,
6 flit-core,
7 numba,
8 numpy,
9 pandas,
10 pytestCheckHook,
11 pythonOlder,
12 scipy,
13 xarray,
14}:
15
16buildPythonPackage rec {
17 pname = "xarray-einstats";
18 version = "0.7.0";
19 format = "pyproject";
20
21 disabled = pythonOlder "3.9";
22
23 src = fetchFromGitHub {
24 owner = "arviz-devs";
25 repo = pname;
26 rev = "refs/tags/v${version}";
27 hash = "sha256-aljjwgBJp341aQN3g1PoZPj+46x21Eu+svG1yzURhJE=";
28 };
29
30 nativeBuildInputs = [ flit-core ];
31
32 propagatedBuildInputs = [
33 numpy
34 scipy
35 xarray
36 ];
37
38 nativeCheckInputs = [
39 einops
40 numba
41 pytestCheckHook
42 ];
43
44 pythonImportsCheck = [ "xarray_einstats" ];
45
46 meta = with lib; {
47 description = "Stats, linear algebra and einops for xarray";
48 homepage = "https://github.com/arviz-devs/xarray-einstats";
49 license = licenses.asl20;
50 maintainers = with maintainers; [ fab ];
51 };
52}