at 24.11-pre 709 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pythonOlder, 6 setuptools-scm, 7 pytestCheckHook, 8}: 9 10buildPythonPackage rec { 11 pname = "sqids"; 12 version = "0.4.1"; 13 pyproject = true; 14 15 disabled = pythonOlder "3.8"; 16 17 src = fetchPypi { 18 inherit pname version; 19 hash = "sha256-/8P7/vY0kb7ouUCpgGU4g0Xb77BtSeQVt6nkdcogD50="; 20 }; 21 22 nativeBuildInputs = [ setuptools-scm ]; 23 24 nativeCheckInputs = [ pytestCheckHook ]; 25 26 pythonImportsCheck = [ "sqids" ]; 27 28 meta = with lib; { 29 homepage = "https://sqids.org/python"; 30 description = "A library that lets you generate short YouTube-looking IDs from numbers"; 31 license = with licenses; mit; 32 maintainers = with maintainers; [ panicgh ]; 33 }; 34}