1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 poetry-core, 6 pytestCheckHook, 7 pythonOlder, 8}: 9 10buildPythonPackage rec { 11 pname = "shortuuid"; 12 version = "1.0.13"; 13 pyproject = true; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchPypi { 18 inherit pname version; 19 hash = "sha256-O7nPB/YGJgWEsd9GOZwLh92Edz57JZErfjkeMHl8XnI="; 20 }; 21 22 build-system = [ poetry-core ]; 23 24 nativeCheckInputs = [ pytestCheckHook ]; 25 26 pythonImportsCheck = [ "shortuuid" ]; 27 28 meta = with lib; { 29 description = "Library to generate concise, unambiguous and URL-safe UUIDs"; 30 mainProgram = "shortuuid"; 31 homepage = "https://github.com/stochastic-technologies/shortuuid/"; 32 changelog = "https://github.com/skorokithakis/shortuuid/blob/v${version}/CHANGELOG.md"; 33 license = licenses.bsd3; 34 maintainers = with maintainers; [ zagy ]; 35 }; 36}