1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pythonOlder
5, pytestCheckHook
6, setuptools
7}:
8
9buildPythonPackage rec {
10 pname = "uc-micro-py";
11 version = "1.0.2";
12 format = "pyproject";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 owner = "tsutsu3";
18 repo = "uc.micro-py";
19 rev = "refs/tags/v${version}";
20 hash = "sha256-PUeWYG/VyxCfhB7onAcDFow1yYqArjmfMT99+058P7U=";
21 };
22
23 nativeBuildInputs = [
24 setuptools
25 ];
26
27 pythonImportsCheck = [
28 "uc_micro"
29 ];
30
31 nativeCheckInputs = [
32 pytestCheckHook
33 ];
34
35 meta = with lib; {
36 description = "Micro subset of unicode data files for linkify-it-py";
37 homepage = "https://github.com/tsutsu3/uc.micro-py";
38 license = licenses.mit;
39 maintainers = with maintainers; [ AluisioASG ];
40 };
41}