blob: 3d0579b5a8466d5d2cd57b751d4a75b2341070cd (
plain)
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
|
{
lib,
buildPythonPackage,
dnspython,
fetchPypi,
filelock,
idna,
platformdirs,
pytestCheckHook,
setuptools,
uritools,
}:
buildPythonPackage rec {
pname = "urlextract";
version = "1.9.0";
pyproject = true;
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 = {
description = "Collects and extracts URLs from given text";
mainProgram = "urlextract";
homepage = "https://github.com/lipoja/URLExtract";
changelog = "https://github.com/lipoja/URLExtract/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ilkecan ];
};
}
|