1{ lib 2, buildPythonPackage 3, fetchPypi 4, isPy27 5, idna 6, typing ? null 7}: 8 9buildPythonPackage rec { 10 pname = "hyperlink"; 11 version = "21.0.0"; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "0sx50lkivsfjxx9zr4yh7l9gll2l9kvl0v0w8w4wk2x5v9bzjyj2"; 16 }; 17 18 propagatedBuildInputs = [ idna ] 19 ++ lib.optionals isPy27 [ typing ]; 20 21 meta = with lib; { 22 description = "A featureful, correct URL for Python"; 23 homepage = "https://github.com/python-hyper/hyperlink"; 24 license = licenses.mit; 25 platforms = platforms.all; 26 maintainers = with maintainers; [ apeschar ]; 27 }; 28}