14 buildPythonPackage rec {
19 disabled = pythonOlder "3.7";
21 src = fetchFromGitHub {
22 owner = "duosecurity";
23 repo = "duo_client_python";
24 rev = "refs/tags/${version}";
25 hash = "sha256-7cifxNSBHbX7QZ52Sy1hm5xzZYcLZOkloT6q9P7TO6A=";
29 substituteInPlace requirements-dev.txt \
30 --replace-fail "dlint" "" \
31 --replace-fail "flake8" ""
34 build-system = [ setuptools ];
36 dependencies = [ six ];
45 pythonImportsCheck = [ "duo_client" ];
48 # Tests require network access
49 "test_server_hostname"
50 "test_server_hostname_with_port"
51 "test_get_billing_edition"
52 "test_get_telephony_credits"
53 "test_set_business_billing_edition"
54 "test_set_enterprise_billing_edition"
55 "test_set_telephony_credits"
59 description = "Python library for interacting with the Duo Auth, Admin, and Accounts APIs";
60 homepage = "https://github.com/duosecurity/duo_client_python";
61 changelog = "https://github.com/duosecurity/duo_client_python/releases/tag/${version}";
62 license = licenses.bsd3;