nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
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 setuptools,
12}:
13
14buildPythonPackage rec {
15 pname = "ulid-transform";
16 version = "1.5.2";
17 pyproject = true;
18
19 src = fetchFromGitHub {
20 owner = "bdraco";
21 repo = "ulid-transform";
22 tag = "v${version}";
23 hash = "sha256-S9+vP0frNvA4wWZMyLPYq6L/5PmLcyFNdN8NY+IrlzQ=";
24 };
25
26 build-system = [
27 cython
28 poetry-core
29 setuptools
30 ];
31
32 nativeCheckInputs = [
33 pytest-benchmark
34 pytest-codspeed
35 pytest-cov-stub
36 pytestCheckHook
37 ];
38
39 pytestFlags = [ "--benchmark-disable" ];
40
41 pythonImportsCheck = [ "ulid_transform" ];
42
43 meta = {
44 description = "Library to create and transform ULIDs";
45 homepage = "https://github.com/bdraco/ulid-transform";
46 changelog = "https://github.com/bdraco/ulid-transform/blob/${src.tag}/CHANGELOG.md";
47 license = with lib.licenses; [ mit ];
48 maintainers = with lib.maintainers; [ fab ];
49 };
50}