Skip to content

Commit

Permalink
python3Packages.scim2-client: init at 0.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
erictapen committed Jan 3, 2025
1 parent 8539182 commit f1a5d50
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 0 deletions.
64 changes: 64 additions & 0 deletions pkgs/development/python-modules/scim2-client/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 { };
Expand Down

0 comments on commit f1a5d50

Please sign in to comment.