2023-03-04 12:14:45 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2023-08-22 20:05:09 +00:00
|
|
|
, aenum
|
|
|
|
, aiohttp
|
2023-03-04 12:14:45 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, flatdict
|
2023-08-22 20:05:09 +00:00
|
|
|
, pycryptodome
|
|
|
|
, pycryptodomex
|
2023-03-04 12:14:45 +00:00
|
|
|
, pydash
|
2023-08-22 20:05:09 +00:00
|
|
|
, pyfakefs
|
2023-03-04 12:14:45 +00:00
|
|
|
, pytest-asyncio
|
|
|
|
, pytest-mock
|
2023-08-22 20:05:09 +00:00
|
|
|
, pytest-recording
|
|
|
|
, pytestCheckHook
|
|
|
|
, python-jose
|
|
|
|
, pythonOlder
|
|
|
|
, pyyaml
|
|
|
|
, xmltodict
|
|
|
|
, yarl
|
2023-03-04 12:14:45 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "okta";
|
2023-08-22 20:05:09 +00:00
|
|
|
version = "2.9.2";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2023-03-04 12:14:45 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-08-22 20:05:09 +00:00
|
|
|
hash = "sha256-kbzqriybzN/86vov3Q+kH2lj9plK1GzWPlc/Nc/nWF0=";
|
2023-03-04 12:14:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aenum
|
|
|
|
aiohttp
|
2023-08-22 20:05:09 +00:00
|
|
|
flatdict
|
|
|
|
pycryptodome
|
|
|
|
pycryptodomex
|
2023-03-04 12:14:45 +00:00
|
|
|
pydash
|
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
|
|
|
];
|
|
|
|
|
2023-08-22 20:05:09 +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
|
|
|
};
|
|
|
|
}
|