5e9e1146e1
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
52 lines
1,020 B
Nix
52 lines
1,020 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, freezegun
|
|
, mock
|
|
, nose2
|
|
, pytz
|
|
, setuptools
|
|
, six
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "duo-client";
|
|
version = "4.7.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "duosecurity";
|
|
repo = "duo_client_python";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-nnKujvhOtuNnlFrbmYtD7L++S7DK0Qqrc0LyAVYe7Xg=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace requirements-dev.txt \
|
|
--replace "dlint" "" \
|
|
--replace "flake8" ""
|
|
'';
|
|
|
|
propagatedBuildInputs = [
|
|
setuptools
|
|
six
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
freezegun
|
|
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";
|
|
changelog = "https://github.com/duosecurity/duo_client_python/releases/tag/${version}";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|