2021-05-04 00:35:58 -03:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonOlder,
|
|
|
|
pytestCheckHook,
|
|
|
|
uc-micro-py,
|
2023-09-15 14:06:26 +02:00
|
|
|
setuptools,
|
2021-05-04 00:35:58 -03:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "linkify-it-py";
|
2024-03-08 02:40:52 +01:00
|
|
|
version = "2.0.3";
|
2023-09-15 14:06:26 +02:00
|
|
|
format = "pyproject";
|
2021-05-04 00:35:58 -03:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tsutsu3";
|
2025-05-25 03:23:20 +02:00
|
|
|
repo = "linkify-it-py";
|
2025-01-03 21:24:13 +01:00
|
|
|
tag = "v${version}";
|
2024-03-08 02:40:52 +01:00
|
|
|
hash = "sha256-BLwIityUZDVdSbvTpLf6QUlZUavWzG/45Nfffn18/vU=";
|
2021-05-04 00:35:58 -03:00
|
|
|
};
|
|
|
|
|
2023-09-15 14:06:26 +02:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2021-05-04 00:35:58 -03:00
|
|
|
|
2023-09-15 14:06:26 +02:00
|
|
|
propagatedBuildInputs = [ uc-micro-py ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "linkify_it" ];
|
|
|
|
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2021-05-04 00:35:58 -03:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Links recognition library with full unicode support";
|
|
|
|
homepage = "https://github.com/tsutsu3/linkify-it-py";
|
|
|
|
license = licenses.mit;
|
2024-08-04 02:50:25 +01:00
|
|
|
maintainers = [ ];
|
2021-05-04 00:35:58 -03:00
|
|
|
};
|
|
|
|
}
|