Fabian Affolter 2024-02-13 11:54:00 +01:00
parent 731ef3d4c4
commit 7598b63c36

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"