diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/pytest-textual-snapshot/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/pytest-textual-snapshot/default.nix | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/pytest-textual-snapshot/default.nix b/nixpkgs/pkgs/development/python-modules/pytest-textual-snapshot/default.nix new file mode 100644 index 000000000000..d9b51373bcdf --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/pytest-textual-snapshot/default.nix @@ -0,0 +1,56 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, poetry-core +, jinja2 +, pytest +, rich +, pythonOlder +, syrupy +, textual +}: + +buildPythonPackage rec { + pname = "pytest-textual-snapshot"; + version = "0.4.0"; + pyproject = true; + + disabled = pythonOlder "3.8"; + + src = fetchFromGitHub { + owner = "Textualize"; + repo = "pytest-textual-snapshot"; + rev = "refs/tags/v${version}"; + hash = "sha256-XkXeyodRdwWqCP63Onx82Z3IbNLDDR/Lvaw8xUY7fAg="; + }; + + nativeBuildInputs = [ + poetry-core + ]; + + buildInputs = [ + pytest + ]; + + propagatedBuildInputs = [ + jinja2 + rich + syrupy + textual + ]; + + # Module has no tests + doCheck = false; + + pythonImportsCheck = [ + "pytest_textual_snapshot" + ]; + + meta = with lib; { + 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 ]; + }; +} |