python3Packages.pixelmatch: disable mypy

This commit is contained in:
Fabian Affolter 2022-01-08 09:53:45 +01:00
parent cc091b950c
commit df48533b24

View file

@ -1,15 +1,26 @@
{ lib, buildPythonPackage, fetchgit, poetry-core, pytestCheckHook, pytest-benchmark, pytest-mypy, pillow }:
{ lib
, buildPythonPackage
, fetchgit
, pillow
, poetry-core
, pytest-benchmark
, pytest-mypy
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "pixelmatch";
version = "0.2.2";
version = "0.2.3";
format = "pyproject";
# test fixtures are stored in LFS
disabled = pythonOlder "3.6";
# Test fixtures are stored in LFS
src = fetchgit {
url = "https://github.com/whtsky/pixelmatch-py";
rev = "v${version}";
sha256 = "1dsix507dxqik9wvgzscvf2pifbg7gx74krrsalqbfcmm7d1i7xl";
hash = "sha256-/zRQhwz+HjT0Hs4CunsqHxHWEtoIH9qMBowRb0Pps6Y=";
fetchLFS = true;
};
@ -18,19 +29,24 @@ buildPythonPackage rec {
];
checkInputs = [
pytestCheckHook
pillow
pytest-benchmark
pytest-mypy
pillow
pytestCheckHook
];
pytestFlagsArray = [
"--mypy"
# Incompatible types in assignment
#"--mypy"
"--benchmark-disable"
];
pythonImportsCheck = [
"pixelmatch"
];
meta = with lib; {
description = "A pixel-level image comparison library.";
description = "Pixel-level image comparison library";
homepage = "https://github.com/whtsky/pixelmatch-py";
license = licenses.isc;
maintainers = with maintainers; [ petabyteboy ];