python311Packages.pybrowsers: init at 0.5.2

Python library for detecting and launching browsers

https://github.com/roniemartinez/browsers
This commit is contained in:
Fabian Affolter
2024-02-21 16:50:47 +01:00
parent ad363bfc1e
commit 8f96ec330c
2 changed files with 51 additions and 0 deletions
@@ -0,0 +1,49 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pythonOlder
, pyxdg
}:
buildPythonPackage rec {
pname = "pybrowsers";
version = "0.5.2";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "roniemartinez";
repo = "browsers";
rev = version;
hash = "sha256-bsmOUa33VzqWCv2jhu6oukdRhWfpkeAM3FBjiBBwjSQ=";
};
postPatch = ''
sed -i "/--cov/d" pyproject.toml
'';
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
pyxdg
];
# Tests want to interact with actual browsers
doCheck = false;
pythonImportsCheck = [
"browsers"
];
meta = with lib; {
description = "Python library for detecting and launching browsers";
homepage = "https://github.com/roniemartinez/browsers";
changelog = "https://github.com/roniemartinez/browsers/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}
+2
View File
@@ -10253,6 +10253,8 @@ self: super: with self; {
pybravia = callPackage ../development/python-modules/pybravia { };
pybrowsers = callPackage ../development/python-modules/pybrowsers { };
pybrowserid = callPackage ../development/python-modules/pybrowserid { };
pybtex = callPackage ../development/python-modules/pybtex { };