depot/third_party/nixpkgs/pkgs/development/python-modules/urlextract/default.nix
Default email 14910f5943 Project import generated by Copybara.
GitOrigin-RevId: 5aaed40d22f0d9376330b6fa413223435ad6fee5
2022-01-13 15:06:32 -05:00

56 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, dnspython
, fetchPypi
, filelock
, idna
, platformdirs
, pytestCheckHook
, pythonOlder
, uritools
}:
buildPythonPackage rec {
pname = "urlextract";
version = "1.5.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-QKXIQ9HXJTdY9W8NZ0jF6iekoUVl46kvJakW3cTB5B8=";
};
propagatedBuildInputs = [
filelock
idna
platformdirs
uritools
];
checkInputs = [
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";
license = licenses.mit;
maintainers = with maintainers; [ ilkecan ];
};
}