1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pythonOlder, 6 pytestCheckHook, 7 nix-update-script, 8 hatchling, 9}: 10 11buildPythonPackage rec { 12 pname = "character-encoding-utils"; 13 version = "0.0.9"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.10"; 17 18 src = fetchPypi { 19 pname = "character_encoding_utils"; 20 inherit version; 21 hash = "sha256-QxnXNerl7qncoBxhfC3G0ar+YprfBpn6pWnUKakNR+c="; 22 }; 23 24 build-system = [ hatchling ]; 25 26 nativeCheckInputs = [ pytestCheckHook ]; 27 28 pythonImportsCheck = [ "character_encoding_utils" ]; 29 30 passthru.updateScript = nix-update-script { }; 31 32 meta = { 33 homepage = "https://github.com/TakWolf/character-encoding-utils"; 34 description = "Some character encoding utils"; 35 platforms = lib.platforms.all; 36 license = lib.licenses.mit; 37 maintainers = with lib.maintainers; [ 38 TakWolf 39 h7x4 40 ]; 41 }; 42}