mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 16:36:38 +01:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
43 lines
812 B
Nix
43 lines
812 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
typing-extensions,
|
|
diffimg,
|
|
imgdiff,
|
|
pytestCheckHook,
|
|
recommonmark,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pytest-image-diff";
|
|
version = "0.0.14";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Apkawa";
|
|
repo = "pytest-image-diff";
|
|
tag = "v${version}";
|
|
hash = "sha256-BQwEbZBgjnx5becu5dcDx0yiw3Y2qptwyqywFq6lqas=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
typing-extensions
|
|
diffimg
|
|
imgdiff
|
|
];
|
|
|
|
pythonImportsCheck = [ "pytest_image_diff" ];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
recommonmark
|
|
];
|
|
|
|
meta = {
|
|
description = "Pytest helps for compare images and regression";
|
|
homepage = "https://github.com/Apkawa/pytest-image-diff";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ ];
|
|
};
|
|
}
|