blob: 11778ceeefacf1b2b0210533c3f3ed91f138bac0 (
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
|
{
lib,
cython,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pytest-benchmark,
pytest-codspeed,
pytest-cov-stub,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "ulid-transform";
version = "1.5.2";
pyproject = true;
src = fetchFromGitHub {
owner = "bdraco";
repo = "ulid-transform";
tag = "v${version}";
hash = "sha256-S9+vP0frNvA4wWZMyLPYq6L/5PmLcyFNdN8NY+IrlzQ=";
};
build-system = [
cython
poetry-core
setuptools
];
nativeCheckInputs = [
pytest-benchmark
pytest-codspeed
pytest-cov-stub
pytestCheckHook
];
pytestFlags = [ "--benchmark-disable" ];
pythonImportsCheck = [ "ulid_transform" ];
meta = {
description = "Library to create and transform ULIDs";
homepage = "https://github.com/bdraco/ulid-transform";
changelog = "https://github.com/bdraco/ulid-transform/blob/${src.tag}/CHANGELOG.md";
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ fab ];
};
}
|