2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pythonOlder,
|
2024-06-24 18:47:55 +00:00
|
|
|
pytestCheckHook,
|
2024-06-05 15:53:02 +00:00
|
|
|
nix-update-script,
|
|
|
|
hatchling,
|
|
|
|
langcodes,
|
2024-01-02 11:29:13 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "unidata-blocks";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "0.0.13";
|
2024-06-24 18:47:55 +00:00
|
|
|
pyproject = true;
|
2024-01-02 11:29:13 +00:00
|
|
|
|
2024-06-24 18:47:55 +00:00
|
|
|
disabled = pythonOlder "3.10";
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "unidata_blocks";
|
|
|
|
inherit version;
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-JQwKMEhDdvvsnXI6QsV2TcuB3mw5NcALbi5kM5xl/Pw=";
|
2024-01-02 11:29:13 +00:00
|
|
|
};
|
|
|
|
|
2024-06-24 18:47:55 +00:00
|
|
|
build-system = [ hatchling ];
|
2024-01-02 11:29:13 +00:00
|
|
|
|
2024-06-24 18:47:55 +00:00
|
|
|
dependencies = [
|
|
|
|
langcodes
|
2024-01-02 11:29:13 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
|
2024-06-24 18:47:55 +00:00
|
|
|
pythonImportsCheck = [ "unidata_blocks" ];
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/TakWolf/unidata-blocks";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Library that helps query unicode blocks by Blocks.txt";
|
2024-01-02 11:29:13 +00:00
|
|
|
platforms = lib.platforms.all;
|
|
|
|
license = lib.licenses.mit;
|
2024-06-24 18:47:55 +00:00
|
|
|
maintainers = with lib.maintainers; [
|
|
|
|
TakWolf
|
|
|
|
h7x4
|
|
|
|
];
|
2024-01-02 11:29:13 +00:00
|
|
|
};
|
|
|
|
}
|