1{ lib 2, buildPythonPackage 3, fetchPypi 4, pytestCheckHook 5}: 6 7buildPythonPackage rec { 8 pname = "nanoid"; 9 version = "2.0.0"; 10 format = "setuptools"; 11 12 src = fetchPypi { 13 inherit pname version; 14 hash = "sha256-WoDK1enG6a46Qfovs0rhiffLQgsqXY+CvZ0jRm5O+mg="; 15 }; 16 17 doCheck = false; # tests not in sdist, git not tagged 18 19 nativeCheckInputs = [ 20 pytestCheckHook 21 ]; 22 23 pythonImportsCheck = [ 24 "nanoid" 25 ]; 26 27 meta = with lib; { 28 description = "A tiny, secure, URL-friendly, unique string ID generator for Python"; 29 homepage = "https://github.com/puyuan/py-nanoid"; 30 license = licenses.mit; 31 maintainers = with maintainers; [ ]; 32 }; 33}