nixpkgs/pkgs/development/python-modules/pims/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

58 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
imageio,
numpy,
pytestCheckHook,
scikit-image,
slicerator,
}:
buildPythonPackage rec {
pname = "pims";
version = "0.7";
format = "setuptools";
src = fetchFromGitHub {
owner = "soft-matter";
repo = "pims";
tag = "v${version}";
hash = "sha256-3SBZk11w6eTZFmETMRJaYncxY38CYne1KzoF5oRgzuY=";
};
propagatedBuildInputs = [
slicerator
imageio
numpy
];
nativeCheckInputs = [
pytestCheckHook
scikit-image
];
pythonImportsCheck = [ "pims" ];
pytestFlags = [
"-Wignore::Warning"
];
disabledTests = [
# NotImplementedError: Do not know how to deal with infinite readers
"TestVideo_ImageIO"
];
disabledTestPaths = [
# AssertionError: Tuples differ: (377, 505, 4) != (384, 512, 4)
"pims/tests/test_display.py"
];
meta = {
description = "Module to load video and sequential images in various formats";
homepage = "https://github.com/soft-matter/pims";
changelog = "https://github.com/soft-matter/pims/releases/tag/v${version}";
license = lib.licenses.bsd3;
maintainers = [ ];
};
}