From f1a5d50df06ac0c39575324d5f236d1f3230b7d6 Mon Sep 17 00:00:00 2001 From: Kerstin Humm Date: Fri, 3 Jan 2025 13:31:18 +0100 Subject: [PATCH] python3Packages.scim2-client: init at 0.5.1 --- .../python-modules/scim2-client/default.nix | 64 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 66 insertions(+) create mode 100644 pkgs/development/python-modules/scim2-client/default.nix diff --git a/pkgs/development/python-modules/scim2-client/default.nix b/pkgs/development/python-modules/scim2-client/default.nix new file mode 100644 index 0000000000000..4ccad91014133 --- /dev/null +++ b/pkgs/development/python-modules/scim2-client/default.nix @@ -0,0 +1,64 @@ +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + hatchling, + scim2-models, + pytestCheckHook, + portpicker, + pytest-httpserver, + pytest-asyncio, + scim2-server, + httpx, + werkzeug, +}: + +buildPythonPackage rec { + pname = "scim2-client"; + version = "0.5.1"; + + pyproject = true; + + disabled = pythonOlder "3.9"; + + src = fetchPypi { + inherit version; + pname = "scim2_client"; + hash = "sha256-g2RR+Ruvjw88cGHcwEPoktTmB8VcWAPnea3BErS8JyI="; + }; + + build-system = [ hatchling ]; + + dependencies = [ scim2-models ]; + + nativeCheckInputs = [ + pytestCheckHook + portpicker + pytest-httpserver + pytest-asyncio + scim2-server + werkzeug + ] ++ optional-dependencies.httpx; + + # Werkzeug returns 500, didn't deem it worth it to investigate + disabledTests = [ + "test_search_request" + "test_query_dont_check_request_payload" + ]; + + pythonImportsCheck = [ "scim2_client" ]; + + optional-dependencies = { + httpx = [ httpx ]; + werkzeug = [ werkzeug ]; + }; + + meta = with lib; { + description = "Pythonically build SCIM requests and parse SCIM responses"; + homepage = "https://scim2-client.readthedocs.io/"; + changelog = "https://github.com/python-scim/scim2-client/releases/tag/${version}"; + license = licenses.asl20; + maintainers = with maintainers; [ erictapen ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 69d0ebc0fd313..c40d5c1e35382 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -14435,6 +14435,8 @@ self: super: with self; { scienceplots = callPackage ../development/python-modules/scienceplots { }; + scim2-client = callPackage ../development/python-modules/scim2-client { }; + scim2-filter-parser = callPackage ../development/python-modules/scim2-filter-parser { }; scim2-models = callPackage ../development/python-modules/scim2-models { };