Merge pull request #111958 from petabyteboy/feature/pixelmatch
python3Packages.pixelmatch: init at 0.2.2
This commit is contained in:
commit
b22a1c44ba
38
pkgs/development/python-modules/pixelmatch/default.nix
Normal file
38
pkgs/development/python-modules/pixelmatch/default.nix
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
{ 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 ];
|
||||||
|
};
|
||||||
|
}
|
@ -4890,6 +4890,8 @@ in {
|
|||||||
inherit (pkgs.libsForQt5) soqt;
|
inherit (pkgs.libsForQt5) soqt;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pixelmatch = callPackage ../development/python-modules/pixelmatch { };
|
||||||
|
|
||||||
pkgconfig = callPackage ../development/python-modules/pkgconfig { inherit (pkgs) pkg-config; };
|
pkgconfig = callPackage ../development/python-modules/pkgconfig { inherit (pkgs) pkg-config; };
|
||||||
|
|
||||||
pkginfo = callPackage ../development/python-modules/pkginfo { };
|
pkginfo = callPackage ../development/python-modules/pkginfo { };
|
||||||
|
Loading…
Reference in New Issue
Block a user