mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 08:26:37 +01:00
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
58 lines
1.1 KiB
Nix
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 = [ ];
|
|
};
|
|
}
|