depot/third_party/nixpkgs/pkgs/development/python-modules/pytest-textual-snapshot/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

51 lines
1 KiB
Nix

{
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 ];
};
}