1{ lib 2, buildPythonPackage 3, fetchPypi 4, pythonOlder 5, unittestCheckHook 6}: 7 8buildPythonPackage rec { 9 pname = "nameparser"; 10 version = "1.1.3"; 11 format = "setuptools"; 12 13 disabled = pythonOlder "3.7"; 14 15 src = fetchPypi { 16 inherit pname version; 17 hash = "sha256-qiQArXHM+AcGdbQDEaJXyTRln5GFSxVOG6bCZHYcBJ0="; 18 }; 19 20 nativeCheckInputs = [ 21 unittestCheckHook 22 ]; 23 24 pythonImportsCheck = [ 25 "nameparser" 26 ]; 27 28 meta = with lib; { 29 description = "Module for parsing human names into their individual components"; 30 homepage = "https://github.com/derek73/python-nameparser"; 31 changelog = "https://github.com/derek73/python-nameparser/releases/tag/v${version}"; 32 license = licenses.lgpl21Plus; 33 maintainers = with maintainers; [ ]; 34 }; 35}