1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 flit-core,
6 pretend,
7 pydantic,
8 pytestCheckHook,
9 pythonOlder,
10 requests,
11}:
12
13buildPythonPackage rec {
14 pname = "id";
15 version = "1.4.0";
16 pyproject = true;
17
18 disabled = pythonOlder "3.8";
19
20 src = fetchFromGitHub {
21 owner = "di";
22 repo = "id";
23 rev = "refs/tags/v${version}";
24 hash = "sha256-lmUBy0hJAxfF65RcBP7tTizrg8j2Zypu4sKgOUQCYh8=";
25 };
26
27 build-system = [ flit-core ];
28
29 dependencies = [
30 pydantic
31 requests
32 ];
33
34 nativeCheckInputs = [
35 pretend
36 pytestCheckHook
37 ];
38
39 pythonImportsCheck = [ "id" ];
40
41 meta = with lib; {
42 description = "Tool for generating OIDC identities";
43 homepage = "https://github.com/di/id";
44 changelog = "https://github.com/di/id/blob/${version}/CHANGELOG.md";
45 license = licenses.asl20;
46 maintainers = with maintainers; [ fab ];
47 };
48}