nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 flit-core,
6 pretend,
7 pytestCheckHook,
8 requests,
9}:
10
11buildPythonPackage rec {
12 pname = "id";
13 version = "1.5.0";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "di";
18 repo = "id";
19 tag = "v${version}";
20 hash = "sha256-6Vkbs/i1roAtPGwLxdM+XKDrMTo0+NfVpAUpw6GPg9U=";
21 };
22
23 build-system = [ flit-core ];
24
25 dependencies = [ requests ];
26
27 nativeCheckInputs = [
28 pretend
29 pytestCheckHook
30 ];
31
32 pythonImportsCheck = [ "id" ];
33
34 meta = {
35 description = "Tool for generating OIDC identities";
36 homepage = "https://github.com/di/id";
37 changelog = "https://github.com/di/id/blob/${version}/CHANGELOG.md";
38 license = lib.licenses.asl20;
39 maintainers = with lib.maintainers; [ fab ];
40 };
41}