nixpkgs/pkgs/development/python-modules/auth0-python/default.nix
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
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
2026-01-11 09:34:20 -08:00

72 lines
1.3 KiB
Nix

{
lib,
aiohttp,
aioresponses,
buildPythonPackage,
callee,
cryptography,
fetchFromGitHub,
mock,
poetry-core,
poetry-dynamic-versioning,
pyjwt,
pyopenssl,
pytestCheckHook,
requests,
urllib3,
}:
buildPythonPackage rec {
pname = "auth0-python";
version = "4.13.0";
pyproject = true;
src = fetchFromGitHub {
owner = "auth0";
repo = "auth0-python";
tag = version;
hash = "sha256-+3c4fj2lv+HFhl3bJ1p1qPq602AG4oMecqE+FMpvjhI=";
};
nativeBuildInputs = [
poetry-core
poetry-dynamic-versioning
];
propagatedBuildInputs = [
aiohttp
cryptography
pyjwt
pyopenssl
requests
urllib3
]
++ pyjwt.optional-dependencies.crypto;
nativeCheckInputs = [
aiohttp
aioresponses
callee
mock
pytestCheckHook
];
pythonRelaxDeps = [ "cryptography" ];
disabledTests = [
# Tries to ping websites (e.g. google.com)
"can_timeout"
"test_options_are_created_by_default"
"test_options_are_used_and_override"
];
pythonImportsCheck = [ "auth0" ];
meta = {
description = "Auth0 Python SDK";
homepage = "https://github.com/auth0/auth0-python";
changelog = "https://github.com/auth0/auth0-python/blob/${src.tag}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = [ ];
};
}