blob: 9dc439fde7062253e0af4a3f2faa98d4f8253466 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
hatch-fancy-pypi-readme,
hatch-vcs,
hatchling,
pydantic,
freezegun,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "python-ulid";
version = "2.7.0";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "mdomke";
repo = "python-ulid";
rev = "refs/tags/${version}";
hash = "sha256-Z9rYqekhrYa8ab17AVmKyObvq4HTOij7+LMlvRSqUQM=";
};
build-system = [
hatch-fancy-pypi-readme
hatch-vcs
hatchling
];
optional-dependencies = {
pydantic = [ pydantic ];
};
nativeCheckInputs = [
freezegun
pytestCheckHook
] ++ optional-dependencies.pydantic;
pythonImportsCheck = [ "ulid" ];
meta = with lib; {
description = "ULID implementation for Python";
mainProgram = "ulid";
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 ];
};
}
|