depot/third_party/nixpkgs/pkgs/development/python-modules/auth0-python/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

57 lines
1.1 KiB
Nix

{ lib
, aiohttp
, aioresponses
, buildPythonPackage
, callee
, fetchPypi
, mock
, pyjwt
, pytestCheckHook
, pythonOlder
, requests
}:
buildPythonPackage rec {
pname = "auth0-python";
version = "4.3.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-enSG8rO0gMpSaf6otdx94xncyxc6Uv570VKVVQkit1g=";
};
propagatedBuildInputs = [
requests
pyjwt
] ++ pyjwt.optional-dependencies.crypto;
nativeCheckInputs = [
aiohttp
aioresponses
callee
mock
pytestCheckHook
];
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 = with lib; {
description = "Auth0 Python SDK";
homepage = "https://github.com/auth0/auth0-python";
changelog = "https://github.com/auth0/auth0-python/blob/${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ costrouc ];
};
}