mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-26 02:20:36 +00:00
python3Packages.pybrowsers: 0.9.0 -> 1.1.0
Diff: https://github.com/roniemartinez/browsers/compare/refs/tags/0.9.0...refs/tags/1.1.0 Changelog: https://github.com/roniemartinez/browsers/releases/tag/1.1.0
This commit is contained in:
@@ -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 ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user