python3Packages.urlextract: init at 1.3.0
This commit is contained in:
parent
14a43b0b62
commit
460d5cfd43
2 changed files with 52 additions and 0 deletions
50
pkgs/development/python-modules/urlextract/default.nix
Normal file
50
pkgs/development/python-modules/urlextract/default.nix
Normal file
|
@ -0,0 +1,50 @@
|
||||||
|
{ lib
|
||||||
|
, appdirs
|
||||||
|
, buildPythonPackage
|
||||||
|
, dnspython
|
||||||
|
, fetchPypi
|
||||||
|
, filelock
|
||||||
|
, idna
|
||||||
|
, pytestCheckHook
|
||||||
|
, uritools
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "urlextract";
|
||||||
|
version = "1.3.0";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "sha256-yxOuiswFOJnAvxwTT++Zhk8nZWK2f4ePsQpUYI7EYS4=";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
appdirs
|
||||||
|
filelock
|
||||||
|
idna
|
||||||
|
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 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -9364,6 +9364,8 @@ in {
|
||||||
|
|
||||||
url-normalize = callPackage ../development/python-modules/url-normalize { };
|
url-normalize = callPackage ../development/python-modules/url-normalize { };
|
||||||
|
|
||||||
|
urlextract = callPackage ../development/python-modules/urlextract { };
|
||||||
|
|
||||||
urlgrabber = callPackage ../development/python-modules/urlgrabber { };
|
urlgrabber = callPackage ../development/python-modules/urlgrabber { };
|
||||||
|
|
||||||
urllib3 = callPackage ../development/python-modules/urllib3 { };
|
urllib3 = callPackage ../development/python-modules/urllib3 { };
|
||||||
|
|
Loading…
Reference in a new issue