1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 poetry-core,
6}:
7
8buildPythonPackage rec {
9 pname = "pybrowsers";
10 version = "1.3.1";
11 pyproject = true;
12
13 src = fetchFromGitHub {
14 owner = "roniemartinez";
15 repo = "browsers";
16 tag = version;
17 hash = "sha256-yTEqqGbwvpNyY/lOs3wjmXngclxv3dOb7jzlmJKMwG0=";
18 };
19
20 build-system = [ poetry-core ];
21
22 # Tests want to interact with actual browsers
23 doCheck = false;
24
25 pythonImportsCheck = [ "browsers" ];
26
27 meta = {
28 description = "Python library for detecting and launching browsers";
29 homepage = "https://github.com/roniemartinez/browsers";
30 changelog = "https://github.com/roniemartinez/browsers/releases/tag/${src.tag}";
31 license = lib.licenses.mit;
32 maintainers = with lib.maintainers; [ fab ];
33 };
34}