nixpkgs/pkgs/development/python-modules/xarray-einstats/default.nix
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

54 lines
1,004 B
Nix

{
lib,
buildPythonPackage,
einops,
fetchFromGitHub,
flit-core,
numba,
numpy,
pytestCheckHook,
scipy,
xarray,
}:
buildPythonPackage rec {
pname = "xarray-einstats";
version = "0.9.1";
pyproject = true;
src = fetchFromGitHub {
owner = "arviz-devs";
repo = "xarray-einstats";
tag = "v${version}";
hash = "sha256-CgyMc2Yvut+1LfH9F2FAd62HuLu+58Xr50txbWj4mYU=";
};
build-system = [ flit-core ];
dependencies = [
numpy
scipy
xarray
];
optional-dependencies = {
einops = [ einops ];
numba = [ numba ];
};
nativeCheckInputs = [ pytestCheckHook ] ++ lib.concatAttrValues optional-dependencies;
pythonImportsCheck = [ "xarray_einstats" ];
disabledTests = [
# TypeError
"test_pinv"
];
meta = {
description = "Stats, linear algebra and einops for xarray";
homepage = "https://github.com/arviz-devs/xarray-einstats";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
};
}