depot/third_party/nixpkgs/pkgs/development/python-modules/pixelmatch/default.nix
Default email fcc03dbfc5 Project import generated by Copybara.
GitOrigin-RevId: ff96a0fa5635770390b184ae74debea75c3fd534
2021-02-13 15:23:35 +01:00

38 lines
867 B
Nix

{ lib, buildPythonPackage, fetchgit, poetry-core, pytestCheckHook, pytest-benchmark, pytest-mypy, pillow }:
buildPythonPackage rec {
pname = "pixelmatch";
version = "0.2.2";
format = "pyproject";
# test fixtures are stored in LFS
src = fetchgit {
url = "https://github.com/whtsky/pixelmatch-py";
rev = "v${version}";
sha256 = "1dsix507dxqik9wvgzscvf2pifbg7gx74krrsalqbfcmm7d1i7xl";
fetchLFS = true;
};
nativeBuildInputs = [
poetry-core
];
checkInputs = [
pytestCheckHook
pytest-benchmark
pytest-mypy
pillow
];
pytestFlagsArray = [
"--mypy"
"--benchmark-disable"
];
meta = with lib; {
description = "A pixel-level image comparison library.";
homepage = "https://github.com/whtsky/pixelmatch-py";
license = licenses.isc;
maintainers = with maintainers; [ petabyteboy ];
};
}