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