blob: e70c1004ecf77e858677a7dd8565c95422430dbc (
plain) (
blame)
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
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, hatch-fancy-pypi-readme
, hatch-vcs
, hatchling
, freezegun
, pytestCheckHook
}:
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";
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 ];
};
}
|