blob: df2b134f9a6565f3c21810c03646091107175952 (
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
50
51
52
53
54
55
56
57
58
59
60
61
62
|
{ lib
, buildPythonPackage
, dnspython
, fetchPypi
, filelock
, idna
, platformdirs
, pytestCheckHook
, pythonOlder
, setuptools
, uritools
}:
buildPythonPackage rec {
pname = "urlextract";
version = "1.9.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-cFCOArqd83LiXPBkLbNnzs4nPocSzQzngXj8XdfqANs=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
filelock
idna
platformdirs
uritools
];
nativeCheckInputs = [
dnspython
pytestCheckHook
];
disabledTests = [
# fails with dns.resolver.NoResolverConfiguration due to network sandboxing
"test_check_dns_enabled"
"test_check_dns_find_urls"
"test_dns_cache_init"
"test_dns_cache_negative"
"test_dns_cache_reuse"
];
pythonImportsCheck = [
"urlextract"
];
meta = with lib; {
description = "Collects and extracts URLs from given text";
homepage = "https://github.com/lipoja/URLExtract";
changelog = "https://github.com/lipoja/URLExtract/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ ilkecan ];
};
}
|