1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
86 lines
1.6 KiB
Nix
86 lines
1.6 KiB
Nix
{
|
|
lib,
|
|
aenum,
|
|
aiohttp,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
flatdict,
|
|
jwcrypto,
|
|
pycryptodomex,
|
|
pydash,
|
|
pyfakefs,
|
|
pyjwt,
|
|
pytest-asyncio,
|
|
pytest-mock,
|
|
pytest-recording,
|
|
pytestCheckHook,
|
|
pyyaml,
|
|
setuptools,
|
|
xmltodict,
|
|
yarl,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "okta";
|
|
version = "2.9.13";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-jY6SZ1G3+NquF5TfLsGw6T9WO4smeBYT0gXLnRDoN+8=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
aenum
|
|
aiohttp
|
|
flatdict
|
|
jwcrypto
|
|
pycryptodomex
|
|
pydash
|
|
pyjwt
|
|
pyyaml
|
|
xmltodict
|
|
yarl
|
|
];
|
|
|
|
checkInputs = [
|
|
pyfakefs
|
|
pytest-asyncio
|
|
pytest-mock
|
|
pytest-recording
|
|
pytestCheckHook
|
|
];
|
|
|
|
enabledTestPaths = [ "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"
|
|
"test_client_invalid_url"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"okta"
|
|
"okta.cache"
|
|
"okta.client"
|
|
"okta.exceptions"
|
|
"okta.http_client"
|
|
"okta.models"
|
|
"okta.request_executor"
|
|
];
|
|
|
|
meta = {
|
|
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 = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ jbgosselin ];
|
|
};
|
|
}
|