mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
39 lines
737 B
Nix
39 lines
737 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pythonOlder,
|
|
setuptools-scm,
|
|
hypothesis,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "sqids";
|
|
version = "0.5.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-ZHeY59W/6yNuesRwnP1M2AhjCmxQ+AIF3xe0yT5WAUA=";
|
|
};
|
|
|
|
build-system = [ setuptools-scm ];
|
|
|
|
nativeCheckInputs = [
|
|
hypothesis
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "sqids" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://sqids.org/python";
|
|
description = "Library that lets you generate short YouTube-looking IDs from numbers";
|
|
license = with licenses; mit;
|
|
maintainers = with maintainers; [ panicgh ];
|
|
};
|
|
}
|