1{ lib 2, fetchFromGitHub 3, buildPythonPackage 4, publicsuffix2 5, pytestCheckHook 6, pythonAtLeast 7}: 8buildPythonPackage rec { 9 pname = "urlpy"; 10 version = "0.5.0"; 11 12 src = fetchFromGitHub { 13 owner = "nexB"; 14 repo = "urlpy"; 15 rev = "v${version}"; 16 sha256 = "962jLyx+/GS8wrDPzG2ONnHvtUG5Pqe6l1Z5ml63Cmg="; 17 }; 18 19 dontConfigure = true; 20 21 propagatedBuildInputs = [ 22 publicsuffix2 23 ]; 24 25 nativeCheckInputs = [ 26 pytestCheckHook 27 ]; 28 29 disabledTests = lib.optionals (pythonAtLeast "3.9") [ 30 # Fails with "AssertionError: assert 'unknown' == ''" 31 "test_unknown_protocol" 32 ]; 33 34 pythonImportsCheck = [ 35 "urlpy" 36 ]; 37 38 meta = with lib; { 39 description = "Simple URL parsing, canonicalization and equivalence"; 40 homepage = "https://github.com/nexB/urlpy"; 41 license = licenses.mit; 42 maintainers = [ ]; 43 }; 44}