blob: 07b686d2df69e4cbcc07b062279e99edb9631248 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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 ];
};
}
|