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