1{ lib 2, buildPythonPackage 3, fetchPypi 4, pytestCheckHook 5, pythonOlder 6}: 7 8buildPythonPackage rec { 9 pname = "shortuuid"; 10 version = "1.0.9"; 11 format = "setuptools"; 12 13 disabled = pythonOlder "3.7"; 14 15 src = fetchPypi { 16 inherit pname version; 17 hash = "sha256-RZ8S+hrMNP8hOxNxRnwDJRaWRaMe2YniaIcjOa91Y9U="; 18 }; 19 20 checkInputs = [ 21 pytestCheckHook 22 ]; 23 24 pythonImportsCheck = [ 25 "shortuuid" 26 ]; 27 28 pytestFlagsArray = [ 29 "shortuuid/tests.py" 30 ]; 31 32 meta = with lib; { 33 description = "Library to generate concise, unambiguous and URL-safe UUIDs"; 34 homepage = "https://github.com/stochastic-technologies/shortuuid/"; 35 license = licenses.bsd3; 36 maintainers = with maintainers; [ zagy ]; 37 }; 38}