Merge pull request #173651 from SuperSandro2000/duo-client

python310Packages.duo-client: init at 4.4.0
This commit is contained in:
Ivv 2022-05-21 17:36:14 +02:00 committed by GitHub
commit 3925da79a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1,47 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, mock
, nose2
, pytz
, setuptools
, six
}:
buildPythonPackage rec {
pname = "duo-client";
version = "4.4.0";
src = fetchFromGitHub {
owner = "duosecurity";
repo = "duo_client_python";
rev = version;
sha256 = "sha256-2sodExb66+Y+aPvm+DkibPt0Bvwqjii+EoBWaopdq+E=";
};
postPatch = ''
substituteInPlace requirements-dev.txt \
--replace "dlint" "" \
--replace "flake8" ""
'';
propagatedBuildInputs = [
setuptools
six
];
checkInputs = [
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 ];
};
}

View File

@ -2572,6 +2572,8 @@ in {
dungeon-eos = callPackage ../development/python-modules/dungeon-eos { };
duo-client = callPackage ../development/python-modules/duo-client { };
durus = callPackage ../development/python-modules/durus { };
dwdwfsapi = callPackage ../development/python-modules/dwdwfsapi { };