forked from mirrors/nixpkgs
48 lines
893 B
Nix
48 lines
893 B
Nix
{ 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 ];
|
|
};
|
|
}
|