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