Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pixelmatch / default.nix
blobb6a7b74701cbb97690f608c8883078d80d0bc0b7
1 { lib
2 , buildPythonPackage
3 , fetchgit
4 , pillow
5 , poetry-core
6 , pytest-benchmark
7 , pytestCheckHook
8 , pythonOlder
9 }:
11 buildPythonPackage rec {
12   pname = "pixelmatch";
13   version = "0.2.3";
14   format = "pyproject";
16   disabled = pythonOlder "3.6";
18   # Test fixtures are stored in LFS
19   src = fetchgit {
20     url = "https://github.com/whtsky/pixelmatch-py";
21     rev = "v${version}";
22     hash = "sha256-/zRQhwz+HjT0Hs4CunsqHxHWEtoIH9qMBowRb0Pps6Y=";
23     fetchLFS = true;
24   };
26   nativeBuildInputs = [
27     poetry-core
28   ];
30   nativeCheckInputs = [
31     pillow
32     pytest-benchmark
33     pytestCheckHook
34   ];
36   pytestFlagsArray = [
37     "--benchmark-disable"
38   ];
40   pythonImportsCheck = [
41     "pixelmatch"
42   ];
44   meta = with lib; {
45     description = "Pixel-level image comparison library";
46     homepage = "https://github.com/whtsky/pixelmatch-py";
47     license = licenses.isc;
48     maintainers = with maintainers; [ ];
49   };