summaryrefslogtreecommitdiffstats
path: root/pkgs/development/python-modules/id/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/id/default.nix')
-rw-r--r--pkgs/development/python-modules/id/default.nix51
1 files changed, 51 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/id/default.nix b/pkgs/development/python-modules/id/default.nix
new file mode 100644
index 000000000000..c4b59268b4bc
--- /dev/null
+++ b/pkgs/development/python-modules/id/default.nix
@@ -0,0 +1,51 @@
+{ lib
+, buildPythonPackage
+, fetchFromGitHub
+, flit-core
+, pretend
+, pydantic
+, pytestCheckHook
+, pythonOlder
+, requests
+}:
+
+buildPythonPackage rec {
+ pname = "id";
+ version = "1.1.0";
+ pyproject = true;
+
+ disabled = pythonOlder "3.7";
+
+ src = fetchFromGitHub {
+ owner = "di";
+ repo = "id";
+ rev = "refs/tags/v${version}";
+ hash = "sha256-T3p13EnXU1Efysnu1RQw5st1BgHyZNdrKtkzQSguRtM=";
+ };
+
+ nativeBuildInputs = [
+ flit-core
+ ];
+
+ propagatedBuildInputs = [
+ pydantic
+ requests
+ ];
+
+ nativeCheckInputs = [
+ pretend
+ pytestCheckHook
+ ];
+
+ pythonImportsCheck = [
+ "id"
+ ];
+
+ meta = with lib; {
+ description = "A tool for generating OIDC identities";
+ homepage = "https://github.com/di/id";
+ changelog = "https://github.com/di/id/blob/${version}/CHANGELOG.md";
+ license = licenses.asl20;
+ maintainers = with maintainers; [ fab ];
+ };
+}