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";
|
2022-11-02 22:02:43 +00:00
|
|
|
version = "4.5.0";
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "duosecurity";
|
|
|
|
repo = "duo_client_python";
|
|
|
|
rev = version;
|
2022-11-02 22:02:43 +00:00
|
|
|
sha256 = "sha256-9ADFtCrSJ4Y2QQY5YC/BMvoVZs2vaYHkhIM/rBlZm4I=";
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace requirements-dev.txt \
|
|
|
|
--replace "dlint" "" \
|
|
|
|
--replace "flake8" ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
six
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
2022-11-02 22:02:43 +00:00
|
|
|
freezegun
|
2022-06-16 17:23:12 +00:00
|
|
|
mock
|
|
|
|
nose2
|
|
|
|
pytz
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "duo_client" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library for interacting with the Duo Auth, Admin, and Accounts APIs";
|
|
|
|
homepage = "https://github.com/duosecurity/duo_client_python";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
|
|
|
};
|
|
|
|
}
|