python312Packages.pytest-textual-snapshot: cleanup

This commit is contained in:
Gutyina Gergő
2025-03-13 18:10:08 +01:00
parent f2e350b5b3
commit 81ce54444e
@@ -2,11 +2,14 @@
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
poetry-core,
# dependencies
jinja2,
pytest,
rich,
pythonOlder,
syrupy,
textual,
}:
@@ -16,8 +19,6 @@ buildPythonPackage rec {
version = "1.1.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "Textualize";
repo = "pytest-textual-snapshot";
@@ -25,9 +26,6 @@ buildPythonPackage rec {
hash = "sha256-ItwwaODnlya/T0Fk5DOPRLoBOwkUN5wq69cELuvy/Js=";
};
nativeBuildInputs = [ poetry-core ];
buildInputs = [ pytest ];
# The script looks for `resources/snapshot_report_template.jinja2` in the parent folder which
# is lib/python3.X/site-packages
# Let's avoid to have a random 'resources' folder in the PYTHONPATH.
@@ -40,8 +38,11 @@ buildPythonPackage rec {
"Path('$out/share/pytest-textual-snapshot/')"
'';
propagatedBuildInputs = [
build-system = [ poetry-core ];
dependencies = [
jinja2
pytest
rich
syrupy
textual
@@ -61,11 +62,11 @@ buildPythonPackage rec {
cp -r resources $out/share/pytest-textual-snapshot/
'';
meta = with lib; {
meta = {
description = "Snapshot testing for Textual applications";
homepage = "https://github.com/Textualize/pytest-textual-snapshot";
changelog = "https://github.com/Textualize/pytest-textual-snapshot/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}