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