1{
2 lib,
3 cython,
4 buildPythonPackage,
5 fetchFromGitHub,
6 poetry-core,
7 pytest-benchmark,
8 pytest-codspeed,
9 pytest-cov-stub,
10 pytestCheckHook,
11 pythonOlder,
12 setuptools,
13}:
14
15buildPythonPackage rec {
16 pname = "ulid-transform";
17 version = "1.4.0";
18 pyproject = true;
19
20 disabled = pythonOlder "3.9";
21
22 src = fetchFromGitHub {
23 owner = "bdraco";
24 repo = "ulid-transform";
25 tag = "v${version}";
26 hash = "sha256-qGqqb1V5wVKQK4/K2t8j/Vm52iS2EybEleCT3nLCJzc=";
27 };
28
29 build-system = [
30 cython
31 poetry-core
32 setuptools
33 ];
34
35 nativeCheckInputs = [
36 pytest-benchmark
37 pytest-codspeed
38 pytest-cov-stub
39 pytestCheckHook
40 ];
41
42 pytestFlags = [ "--benchmark-disable" ];
43
44 pythonImportsCheck = [ "ulid_transform" ];
45
46 meta = with lib; {
47 description = "Library to create and transform ULIDs";
48 homepage = "https://github.com/bdraco/ulid-transform";
49 changelog = "https://github.com/bdraco/ulid-transform/blob/${src.tag}/CHANGELOG.md";
50 license = with licenses; [ mit ];
51 maintainers = with maintainers; [ fab ];
52 };
53}