depot/third_party/nixpkgs/pkgs/development/python-modules/pixelmatch/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

50 lines
914 B
Nix

{ lib
, buildPythonPackage
, fetchgit
, pillow
, poetry-core
, pytest-benchmark
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "pixelmatch";
version = "0.2.3";
format = "pyproject";
disabled = pythonOlder "3.6";
# Test fixtures are stored in LFS
src = fetchgit {
url = "https://github.com/whtsky/pixelmatch-py";
rev = "v${version}";
hash = "sha256-/zRQhwz+HjT0Hs4CunsqHxHWEtoIH9qMBowRb0Pps6Y=";
fetchLFS = true;
};
nativeBuildInputs = [
poetry-core
];
nativeCheckInputs = [
pillow
pytest-benchmark
pytestCheckHook
];
pytestFlagsArray = [
"--benchmark-disable"
];
pythonImportsCheck = [
"pixelmatch"
];
meta = with lib; {
description = "Pixel-level image comparison library";
homepage = "https://github.com/whtsky/pixelmatch-py";
license = licenses.isc;
maintainers = with maintainers; [ ];
};
}