2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
buildPythonPackage,
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
2021-12-06 16:07:01 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "slugid";
|
|
|
|
version = "2.0.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "taskcluster";
|
|
|
|
repo = "slugid.py";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "McBxGRi8KqVhe2Xez5k4G67R5wBCCoh41dRsTKW4xMA=";
|
|
|
|
};
|
|
|
|
|
|
|
|
doCheck = false; # has no tests
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "slugid" ];
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "URL-safe base64 UUID encoder for generating 22 character slugs";
|
|
|
|
homepage = "https://github.com/taskcluster/slugid.py";
|
|
|
|
license = licenses.mpl20;
|
|
|
|
maintainers = with maintainers; [ milahu ];
|
|
|
|
};
|
|
|
|
}
|