From 81ce54444e21d3bbfd0f84d706466fcdb462ee87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gutyina=20Gerg=C5=91?= Date: Sun, 16 Feb 2025 23:14:49 +0100 Subject: [PATCH] python312Packages.pytest-textual-snapshot: cleanup --- .../pytest-textual-snapshot/default.nix | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/pytest-textual-snapshot/default.nix b/pkgs/development/python-modules/pytest-textual-snapshot/default.nix index 0ca041371171..89040cc6c7bd 100644 --- a/pkgs/development/python-modules/pytest-textual-snapshot/default.nix +++ b/pkgs/development/python-modules/pytest-textual-snapshot/default.nix @@ -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 ]; }; }