My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/urlextract/default.nix

56 lines
1.0 KiB

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