1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 setuptools, 6 # nativeCheckInputs 7 pytestCheckHook, 8}: 9 10buildPythonPackage rec { 11 pname = "pyunormalize"; 12 version = "16.0.0"; 13 pyproject = true; 14 15 # No tags on GitHub 16 src = fetchPypi { 17 inherit pname version; 18 hash = "sha256-Lh37tKEYFUrib3BxBCalKjZLkmyRkfdkYB9ajLEnYfc="; 19 }; 20 21 build-system = [ setuptools ]; 22 23 nativeCheckInputs = [ pytestCheckHook ]; 24 25 # The pypi archive does not contain the tests. 26 # NOTE: one should review this for each future update. 27 doCheck = false; 28 29 pythonImportsCheck = [ "pyunormalize" ]; 30 31 meta = { 32 description = "Unicode normalization forms (NFC, NFKC, NFD, NFKD) independent of the Python core Unicode database"; 33 homepage = "https://github.com/mlodewijck/pyunormalize"; 34 license = lib.licenses.mit; 35 maintainers = with lib.maintainers; [ hellwolf ]; 36 }; 37}