depot/third_party/nixpkgs/pkgs/development/python-modules/linkify-it-py/default.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

46 lines
846 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pytestCheckHook
, uc-micro-py
, setuptools
}:
buildPythonPackage rec {
pname = "linkify-it-py";
version = "2.0.2";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "tsutsu3";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-e3k2RblqvzWSSIrJL6ib2dxFw7T5vXlN8DrCV1qEr6w=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
uc-micro-py
];
pythonImportsCheck = [
"linkify_it"
];
nativeCheckInputs = [
pytestCheckHook
];
meta = with lib; {
description = "Links recognition library with full unicode support";
homepage = "https://github.com/tsutsu3/linkify-it-py";
license = licenses.mit;
maintainers = with maintainers; [ AluisioASG ];
};
}