nixpkgs/pkgs/development/python-modules/xarray-einstats/default.nix
Weijia Wang a0c893191f
Merge pull request #211389 from r-ryantm/auto-update/python310Packages.xarray-einstats
python310Packages.xarray-einstats: 0.4.0 -> 0.5.1
2023-02-26 00:21:24 +02:00

56 lines
919 B
Nix

{ lib
, buildPythonPackage
, einops
, fetchFromGitHub
, flit-core
, numba
, numpy
, pandas
, pytestCheckHook
, pythonOlder
, scipy
, xarray
}:
buildPythonPackage rec {
pname = "xarray-einstats";
version = "0.5.1";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "arviz-devs";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-oDrNR7iVDg7Piti6JNaXGekfrUfK5GWJYbH/g6m4570=";
};
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 ];
};
}