51 lines
931 B
Nix
51 lines
931 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
hatchling,
|
|
portpicker,
|
|
pytest,
|
|
scim2-server,
|
|
pytestCheckHook,
|
|
scim2-client,
|
|
cacert,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pytest-scim2-server";
|
|
version = "0.1.5";
|
|
|
|
pyproject = true;
|
|
|
|
# Pypi doesn't link a VCS repository
|
|
src = fetchPypi {
|
|
pname = "pytest_scim2_server";
|
|
inherit version;
|
|
hash = "sha256-5jsjVtxiSF3cu9useDEmwQ45PqJAZmfw7OUIZkCi6gQ=";
|
|
};
|
|
|
|
build-system = [ hatchling ];
|
|
|
|
dependencies = [
|
|
portpicker
|
|
pytest
|
|
scim2-server
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
scim2-client
|
|
]
|
|
++ scim2-client.optional-dependencies.httpx;
|
|
|
|
env.SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt";
|
|
|
|
pythonImportsCheck = [ "pytest_scim2_server" ];
|
|
|
|
meta = {
|
|
homepage = "https://pypi.org/project/pytest-scim2-server";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ erictapen ];
|
|
};
|
|
}
|