1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, freezegun 5, mock 6, nose2 7, pytz 8, setuptools 9, six 10}: 11 12buildPythonPackage rec { 13 pname = "duo-client"; 14 version = "4.5.0"; 15 16 src = fetchFromGitHub { 17 owner = "duosecurity"; 18 repo = "duo_client_python"; 19 rev = version; 20 sha256 = "sha256-9ADFtCrSJ4Y2QQY5YC/BMvoVZs2vaYHkhIM/rBlZm4I="; 21 }; 22 23 postPatch = '' 24 substituteInPlace requirements-dev.txt \ 25 --replace "dlint" "" \ 26 --replace "flake8" "" 27 ''; 28 29 propagatedBuildInputs = [ 30 setuptools 31 six 32 ]; 33 34 checkInputs = [ 35 freezegun 36 mock 37 nose2 38 pytz 39 ]; 40 41 pythonImportsCheck = [ "duo_client" ]; 42 43 meta = with lib; { 44 description = "Python library for interacting with the Duo Auth, Admin, and Accounts APIs"; 45 homepage = "https://github.com/duosecurity/duo_client_python"; 46 license = licenses.bsd3; 47 maintainers = with maintainers; [ SuperSandro2000 ]; 48 }; 49}