Robert Schütz
2025-05-15 11:06:00 -07:00
parent 234f1c87f8
commit a46a4fcb61

View File

@@ -3,42 +3,32 @@
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pythonOlder,
pyxdg,
}:
buildPythonPackage rec {
pname = "pybrowsers";
version = "0.9.0";
version = "1.1.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "roniemartinez";
repo = "browsers";
tag = version;
hash = "sha256-lL5oSz+T5HWxipwEaff+OM5lij3WUvuIpsVCv6dHWhk=";
hash = "sha256-9YO/FTgL/BzabPnpi2RM/C08F7/d6FNshWnGsT6NQlg=";
};
postPatch = ''
sed -i "/--cov/d" pyproject.toml
'';
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [ pyxdg ];
build-system = [ poetry-core ];
# Tests want to interact with actual browsers
doCheck = false;
pythonImportsCheck = [ "browsers" ];
meta = with lib; {
meta = {
description = "Python library for detecting and launching browsers";
homepage = "https://github.com/roniemartinez/browsers";
changelog = "https://github.com/roniemartinez/browsers/releases/tag/${src.tag}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}