mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 12:29:02 +02:00
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:
commit
6fa1b73577
|
@ -6,20 +6,19 @@
|
||||||
|
|
||||||
python3.pkgs.buildPythonApplication rec {
|
python3.pkgs.buildPythonApplication rec {
|
||||||
pname = "browsr";
|
pname = "browsr";
|
||||||
version = "1.17.1";
|
version = "1.18.0";
|
||||||
format = "pyproject";
|
pyproject = true;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "juftin";
|
owner = "juftin";
|
||||||
repo = "browsr";
|
repo = "browsr";
|
||||||
rev = "v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
hash = "sha256-FExDKugFP94C3zMnR1V4QDPWeM2OtRH2ei0LNs3h06c=";
|
hash = "sha256-Ygqoz1rNQwhU1/8NsHwQsSCqQ8gYwHEaAuIaVMCtKKA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = with python3.pkgs; [
|
nativeBuildInputs = with python3.pkgs; [
|
||||||
hatchling
|
hatchling
|
||||||
pythonRelaxDepsHook
|
pythonRelaxDepsHook
|
||||||
pytestCheckHook
|
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = with python3.pkgs; [
|
propagatedBuildInputs = with python3.pkgs; [
|
||||||
|
@ -48,18 +47,31 @@ python3.pkgs.buildPythonApplication rec {
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nativeCheckInputs = with python3.pkgs; [
|
||||||
|
pytest-textual-snapshot
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
pythonRelaxDeps = [
|
pythonRelaxDeps = [
|
||||||
"art"
|
"art"
|
||||||
"pandas"
|
"pandas"
|
||||||
"pymupdf"
|
"pymupdf"
|
||||||
"rich-click"
|
"rich-click"
|
||||||
|
"rich-pixels"
|
||||||
|
"rich"
|
||||||
"textual"
|
"textual"
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [ "browsr" ];
|
pythonImportsCheck = [
|
||||||
|
"browsr"
|
||||||
|
];
|
||||||
|
|
||||||
|
pytestFlagsArray = [
|
||||||
|
"--snapshot-update"
|
||||||
|
];
|
||||||
|
|
||||||
# requires internet access
|
|
||||||
disabledTests = [
|
disabledTests = [
|
||||||
|
# Tests require internet access
|
||||||
"test_github_screenshot"
|
"test_github_screenshot"
|
||||||
"test_github_screenshot_license"
|
"test_github_screenshot_license"
|
||||||
"test_textual_app_context_path_github"
|
"test_textual_app_context_path_github"
|
||||||
|
|
|
@ -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 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -11723,6 +11723,8 @@ self: super: with self; {
|
||||||
|
|
||||||
pytest-testmon = callPackage ../development/python-modules/pytest-testmon { };
|
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-timeout = callPackage ../development/python-modules/pytest-timeout { };
|
||||||
|
|
||||||
pytest-tornado = callPackage ../development/python-modules/pytest-tornado { };
|
pytest-tornado = callPackage ../development/python-modules/pytest-tornado { };
|
||||||
|
|
Loading…
Reference in a new issue