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