+6
-16
pkgs/development/python-modules/pybrowsers/default.nix
+6
-16
pkgs/development/python-modules/pybrowsers/default.nix
···
3
3
buildPythonPackage,
4
4
fetchFromGitHub,
5
5
poetry-core,
6
-
pythonOlder,
7
-
pyxdg,
8
6
}:
9
7
10
8
buildPythonPackage rec {
11
9
pname = "pybrowsers";
12
-
version = "0.9.0";
10
+
version = "1.1.0";
13
11
pyproject = true;
14
-
15
-
disabled = pythonOlder "3.8";
16
12
17
13
src = fetchFromGitHub {
18
14
owner = "roniemartinez";
19
15
repo = "browsers";
20
16
tag = version;
21
-
hash = "sha256-lL5oSz+T5HWxipwEaff+OM5lij3WUvuIpsVCv6dHWhk=";
17
+
hash = "sha256-9YO/FTgL/BzabPnpi2RM/C08F7/d6FNshWnGsT6NQlg=";
22
18
};
23
19
24
-
postPatch = ''
25
-
sed -i "/--cov/d" pyproject.toml
26
-
'';
27
-
28
-
nativeBuildInputs = [ poetry-core ];
29
-
30
-
propagatedBuildInputs = [ pyxdg ];
20
+
build-system = [ poetry-core ];
31
21
32
22
# Tests want to interact with actual browsers
33
23
doCheck = false;
34
24
35
25
pythonImportsCheck = [ "browsers" ];
36
26
37
-
meta = with lib; {
27
+
meta = {
38
28
description = "Python library for detecting and launching browsers";
39
29
homepage = "https://github.com/roniemartinez/browsers";
40
30
changelog = "https://github.com/roniemartinez/browsers/releases/tag/${src.tag}";
41
-
license = licenses.mit;
42
-
maintainers = with maintainers; [ fab ];
31
+
license = lib.licenses.mit;
32
+
maintainers = with lib.maintainers; [ fab ];
43
33
};
44
34
}