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