1{ stdenv, buildPythonPackage, fetchPypi, idna, pytest }: 2 3buildPythonPackage rec { 4 pname = "hyperlink"; 5 version = "18.0.0"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "f01b4ff744f14bc5d0a22a6b9f1525ab7d6312cb0ff967f59414bbac52f0a306"; 10 }; 11 12 propagatedBuildInputs = [ idna ]; 13 14 checkInputs = [ pytest ]; 15 16 checkPhase = '' 17 py.test $out 18 ''; 19 20 meta = with stdenv.lib; { 21 description = "A featureful, correct URL for Python"; 22 license = licenses.mit; 23 platforms = platforms.all; 24 maintainers = with maintainers; [ apeschar ]; 25 }; 26}