1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pytestCheckHook,
6 pythonOlder,
7 nix-update-script,
8 hatch-vcs,
9 hatchling,
10 langcodes,
11}:
12
13buildPythonPackage rec {
14 pname = "unidata-blocks";
15 version = "0.0.10";
16
17 disabled = pythonOlder "3.11";
18
19 src = fetchPypi {
20 pname = "unidata_blocks";
21 inherit version;
22 hash = "sha256-wwiOjfIAx6AZtK98uuPQ0jwblq+CdnMQp+JkQWh+RgM=";
23 };
24
25 format = "pyproject";
26
27 nativeBuildInputs = [
28 hatch-vcs
29 hatchling
30 ];
31
32 propagatedBuildInputs = [ langcodes ];
33
34 nativeCheckInputs = [ pytestCheckHook ];
35
36 passthru.updateScript = nix-update-script { };
37
38 meta = {
39 homepage = "https://github.com/TakWolf/unidata-blocks";
40 description = "A library that helps query unicode blocks by Blocks.txt";
41 platforms = lib.platforms.all;
42 license = lib.licenses.mit;
43 maintainers = with lib.maintainers; [ h7x4 ];
44 };
45}