2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
aenum,
|
|
|
|
aiohttp,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
flatdict,
|
2024-07-31 10:19:44 +00:00
|
|
|
jwcrypto,
|
2024-06-05 15:53:02 +00:00
|
|
|
pycryptodome,
|
|
|
|
pycryptodomex,
|
|
|
|
pydash,
|
|
|
|
pyfakefs,
|
2024-07-31 10:19:44 +00:00
|
|
|
pyjwt,
|
2024-06-05 15:53:02 +00:00
|
|
|
pytest-asyncio,
|
|
|
|
pytest-mock,
|
|
|
|
pytest-recording,
|
|
|
|
pytestCheckHook,
|
|
|
|
python-jose,
|
|
|
|
pythonOlder,
|
|
|
|
pyyaml,
|
|
|
|
xmltodict,
|
|
|
|
yarl,
|
2023-03-04 12:14:45 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "okta";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "2.9.7";
|
2023-08-22 20:05:09 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2023-03-04 12:14:45 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-wW3QiWcyH9byMywsRAdWLulFUagouWM87vMJtQ+q2UE=";
|
2023-03-04 12:14:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aenum
|
|
|
|
aiohttp
|
2023-08-22 20:05:09 +00:00
|
|
|
flatdict
|
2024-07-31 10:19:44 +00:00
|
|
|
jwcrypto
|
2023-08-22 20:05:09 +00:00
|
|
|
pycryptodome
|
|
|
|
pycryptodomex
|
2023-03-04 12:14:45 +00:00
|
|
|
pydash
|
2024-07-31 10:19:44 +00:00
|
|
|
pyjwt
|
2023-08-22 20:05:09 +00:00
|
|
|
python-jose
|
2023-03-04 12:14:45 +00:00
|
|
|
pyyaml
|
2023-08-22 20:05:09 +00:00
|
|
|
xmltodict
|
|
|
|
yarl
|
2023-03-04 12:14:45 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
2023-08-22 20:05:09 +00:00
|
|
|
pyfakefs
|
2023-03-04 12:14:45 +00:00
|
|
|
pytest-asyncio
|
|
|
|
pytest-mock
|
|
|
|
pytest-recording
|
2023-08-22 20:05:09 +00:00
|
|
|
pytestCheckHook
|
2023-03-04 12:14:45 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pytestFlagsArray = [ "tests/" ];
|
2023-03-04 12:14:45 +00:00
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
"test_client_raise_exception"
|
2023-08-22 20:05:09 +00:00
|
|
|
# vcr.errors.CannotOverwriteExistingCassetteException: Can't overwrite existing cassette
|
|
|
|
"test_get_org_contact_user"
|
|
|
|
"test_update_org_contact_user"
|
|
|
|
"test_get_role_subscription"
|
|
|
|
"test_subscribe_unsubscribe"
|
2023-03-04 12:14:45 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"okta"
|
|
|
|
"okta.cache"
|
|
|
|
"okta.client"
|
|
|
|
"okta.exceptions"
|
|
|
|
"okta.http_client"
|
|
|
|
"okta.models"
|
|
|
|
"okta.request_executor"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python SDK for the Okta Management API";
|
|
|
|
homepage = "https://github.com/okta/okta-sdk-python";
|
2023-08-22 20:05:09 +00:00
|
|
|
changelog = "https://github.com/okta/okta-sdk-python/blob/v${version}/CHANGELOG.md";
|
2023-03-04 12:14:45 +00:00
|
|
|
license = licenses.asl20;
|
2023-05-24 13:37:59 +00:00
|
|
|
maintainers = with maintainers; [ jbgosselin ];
|
2023-03-04 12:14:45 +00:00
|
|
|
};
|
|
|
|
}
|