depot/third_party/nixpkgs/pkgs/development/python-modules/okta/default.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

86 lines
1.6 KiB
Nix

{ lib
, stdenv
, aenum
, aiohttp
, buildPythonPackage
, fetchPypi
, flatdict
, pycryptodome
, pycryptodomex
, pydash
, pyfakefs
, pytest-asyncio
, pytest-mock
, pytest-recording
, pytestCheckHook
, python-jose
, pythonOlder
, pyyaml
, xmltodict
, yarl
}:
buildPythonPackage rec {
pname = "okta";
version = "2.9.3";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-mOKVCRp8cLY7p0AVbvphWdB3II6eB6HlN8i1HrVUH+o=";
};
propagatedBuildInputs = [
aenum
aiohttp
flatdict
pycryptodome
pycryptodomex
pydash
python-jose
pyyaml
xmltodict
yarl
];
checkInputs = [
pyfakefs
pytest-asyncio
pytest-mock
pytest-recording
pytestCheckHook
];
pytestFlagsArray = [
"tests/"
];
disabledTests = [
"test_client_raise_exception"
# 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"
];
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";
changelog = "https://github.com/okta/okta-sdk-python/blob/v${version}/CHANGELOG.md";
license = licenses.asl20;
maintainers = with maintainers; [ jbgosselin ];
};
}