1{ lib, buildPythonPackage, fetchPypi, isPy27, idna, typing }:
2
3buildPythonPackage rec {
4 pname = "hyperlink";
5 version = "20.0.1";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "47fcc7cd339c6cb2444463ec3277bdcfe142c8b1daf2160bdd52248deec815af";
10 };
11
12 propagatedBuildInputs = [ idna ]
13 ++ lib.optionals isPy27 [ typing ];
14
15 meta = with lib; {
16 description = "A featureful, correct URL for Python";
17 license = licenses.mit;
18 platforms = platforms.all;
19 maintainers = with maintainers; [ apeschar ];
20 };
21}