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