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