2022-06-16 17:23:12 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2022-11-02 22:02:43 +00:00
|
|
|
, freezegun
|
2022-06-16 17:23:12 +00:00
|
|
|
, mock
|
|
|
|
, nose2
|
|
|
|
, pytz
|
|
|
|
, setuptools
|
|
|
|
, six
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "duo-client";
|
2023-04-12 12:48:02 +00:00
|
|
|
version = "4.7.1";
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "duosecurity";
|
|
|
|
repo = "duo_client_python";
|
2023-02-22 10:55:15 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-04-12 12:48:02 +00:00
|
|
|
hash = "sha256-nnKujvhOtuNnlFrbmYtD7L++S7DK0Qqrc0LyAVYe7Xg=";
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace requirements-dev.txt \
|
|
|
|
--replace "dlint" "" \
|
|
|
|
--replace "flake8" ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
six
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-11-02 22:02:43 +00:00
|
|
|
freezegun
|
2022-06-16 17:23:12 +00:00
|
|
|
mock
|
|
|
|
nose2
|
|
|
|
pytz
|
|
|
|
];
|
|
|
|
|
2023-02-22 10:55:15 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"duo_client"
|
|
|
|
];
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library for interacting with the Duo Auth, Admin, and Accounts APIs";
|
|
|
|
homepage = "https://github.com/duosecurity/duo_client_python";
|
2023-02-22 10:55:15 +00:00
|
|
|
changelog = "https://github.com/duosecurity/duo_client_python/releases/tag/${version}";
|
2022-06-16 17:23:12 +00:00
|
|
|
license = licenses.bsd3;
|
2023-08-04 22:07:22 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
}
|