nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 57 lines 1.2 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 dnspython, 5 fetchPypi, 6 filelock, 7 idna, 8 platformdirs, 9 pytestCheckHook, 10 setuptools, 11 uritools, 12}: 13 14buildPythonPackage rec { 15 pname = "urlextract"; 16 version = "1.9.0"; 17 pyproject = true; 18 19 src = fetchPypi { 20 inherit pname version; 21 hash = "sha256-cFCOArqd83LiXPBkLbNnzs4nPocSzQzngXj8XdfqANs="; 22 }; 23 24 nativeBuildInputs = [ setuptools ]; 25 26 propagatedBuildInputs = [ 27 filelock 28 idna 29 platformdirs 30 uritools 31 ]; 32 33 nativeCheckInputs = [ 34 dnspython 35 pytestCheckHook 36 ]; 37 38 disabledTests = [ 39 # fails with dns.resolver.NoResolverConfiguration due to network sandboxing 40 "test_check_dns_enabled" 41 "test_check_dns_find_urls" 42 "test_dns_cache_init" 43 "test_dns_cache_negative" 44 "test_dns_cache_reuse" 45 ]; 46 47 pythonImportsCheck = [ "urlextract" ]; 48 49 meta = { 50 description = "Collects and extracts URLs from given text"; 51 mainProgram = "urlextract"; 52 homepage = "https://github.com/lipoja/URLExtract"; 53 changelog = "https://github.com/lipoja/URLExtract/releases/tag/v${version}"; 54 license = lib.licenses.mit; 55 maintainers = with lib.maintainers; [ ilkecan ]; 56 }; 57}