2021-04-21 07:56:22 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPy27
|
|
|
|
, idna
|
|
|
|
, typing ? null
|
|
|
|
}:
|
2017-11-09 11:26:09 +00:00
|
|
|
|
2017-08-15 08:44:28 +01:00
|
|
|
buildPythonPackage rec {
|
2017-11-09 11:26:09 +00:00
|
|
|
pname = "hyperlink";
|
2021-03-24 09:28:14 +00:00
|
|
|
version = "21.0.0";
|
2017-08-15 08:44:28 +01:00
|
|
|
|
2018-02-26 20:00:28 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-04-21 07:56:22 +01:00
|
|
|
sha256 = "0sx50lkivsfjxx9zr4yh7l9gll2l9kvl0v0w8w4wk2x5v9bzjyj2";
|
2017-08-15 08:44:28 +01:00
|
|
|
};
|
|
|
|
|
2020-08-17 03:12:51 +01:00
|
|
|
propagatedBuildInputs = [ idna ]
|
|
|
|
++ lib.optionals isPy27 [ typing ];
|
2018-02-26 19:59:21 +00:00
|
|
|
|
2020-08-17 03:12:51 +01:00
|
|
|
meta = with lib; {
|
2017-08-15 08:44:28 +01:00
|
|
|
description = "A featureful, correct URL for Python";
|
2021-04-21 07:56:22 +01:00
|
|
|
homepage = "https://github.com/python-hyper/hyperlink";
|
2017-08-15 08:44:28 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ apeschar ];
|
|
|
|
};
|
|
|
|
}
|