Merge pull request #288506 from fabaff/browsr-fix

browsr: 1.17.0 -> 1.18.0, python311Packages.pytest-textual-snapshot: init at 0.4.0
This commit is contained in:
Fabian Affolter 2024-02-14 09:00:50 +01:00 committed by GitHub
commit 6fa1b73577
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 77 additions and 7 deletions

View file

@ -6,20 +6,19 @@
python3.pkgs.buildPythonApplication rec {
pname = "browsr";
version = "1.17.1";
format = "pyproject";
version = "1.18.0";
pyproject = true;
src = fetchFromGitHub {
owner = "juftin";
repo = "browsr";
rev = "v${version}";
hash = "sha256-FExDKugFP94C3zMnR1V4QDPWeM2OtRH2ei0LNs3h06c=";
rev = "refs/tags/v${version}";
hash = "sha256-Ygqoz1rNQwhU1/8NsHwQsSCqQ8gYwHEaAuIaVMCtKKA=";
};
nativeBuildInputs = with python3.pkgs; [
hatchling
pythonRelaxDepsHook
pytestCheckHook
];
propagatedBuildInputs = with python3.pkgs; [
@ -48,18 +47,31 @@ python3.pkgs.buildPythonApplication rec {
];
};
nativeCheckInputs = with python3.pkgs; [
pytest-textual-snapshot
pytestCheckHook
];
pythonRelaxDeps = [
"art"
"pandas"
"pymupdf"
"rich-click"
"rich-pixels"
"rich"
"textual"
];
pythonImportsCheck = [ "browsr" ];
pythonImportsCheck = [
"browsr"
];
pytestFlagsArray = [
"--snapshot-update"
];
# requires internet access
disabledTests = [
# Tests require internet access
"test_github_screenshot"
"test_github_screenshot_license"
"test_textual_app_context_path_github"

View file

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

View file

@ -11723,6 +11723,8 @@ self: super: with self; {
pytest-testmon = callPackage ../development/python-modules/pytest-testmon { };
pytest-textual-snapshot = callPackage ../development/python-modules/pytest-textual-snapshot { };
pytest-timeout = callPackage ../development/python-modules/pytest-timeout { };
pytest-tornado = callPackage ../development/python-modules/pytest-tornado { };