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