2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonOlder,
|
|
|
|
hatch-fancy-pypi-readme,
|
|
|
|
hatch-vcs,
|
|
|
|
hatchling,
|
|
|
|
freezegun,
|
|
|
|
pytestCheckHook,
|
2023-11-16 04:20:00 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-ulid";
|
|
|
|
version = "2.2.0";
|
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mdomke";
|
|
|
|
repo = "python-ulid";
|
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-d5jCPxWUOfw/OCtbA9Db9+s1D5DAdL+vbPR8zavgbbo=";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
hatch-fancy-pypi-readme
|
|
|
|
hatch-vcs
|
|
|
|
hatchling
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
freezegun
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "ulid" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "ULID implementation for Python";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "ulid";
|
2023-11-16 04:20:00 +00:00
|
|
|
homepage = "https://github.com/mdomke/python-ulid";
|
|
|
|
changelog = "https://github.com/mdomke/python-ulid/blob/${src.rev}/CHANGELOG.rst";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ natsukium ];
|
|
|
|
};
|
|
|
|
}
|