depot/third_party/nixpkgs/pkgs/development/python-modules/urlextract/default.nix
Default email 92b3d6365d Project import generated by Copybara.
GitOrigin-RevId: 412b9917cea092f3d39f9cd5dead4effd5bc4053
2022-10-30 16:09:59 +01:00

56 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, dnspython
, fetchPypi
, filelock
, idna
, platformdirs
, pytestCheckHook
, pythonOlder
, uritools
}:
buildPythonPackage rec {
pname = "urlextract";
version = "1.7.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-DYg7Wd5Th4c+o4JeYrNDWDMTE1rGZMP1wNVfF7Kzv30=";
};
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 ];
};
}