2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools-scm,
|
|
|
|
pytestCheckHook,
|
2023-10-09 19:29:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sqids";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "0.4.1";
|
2023-11-16 04:20:00 +00:00
|
|
|
pyproject = true;
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-/8P7/vY0kb7ouUCpgGU4g0Xb77BtSeQVt6nkdcogD50=";
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
2023-10-09 19:29:22 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "sqids" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://sqids.org/python";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Library that lets you generate short YouTube-looking IDs from numbers";
|
2023-10-09 19:29:22 +00:00
|
|
|
license = with licenses; mit;
|
|
|
|
maintainers = with maintainers; [ panicgh ];
|
|
|
|
};
|
|
|
|
}
|