Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 1.0 kB view raw
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.7.1"; 15 16 src = fetchFromGitHub { 17 owner = "duosecurity"; 18 repo = "duo_client_python"; 19 rev = "refs/tags/${version}"; 20 hash = "sha256-nnKujvhOtuNnlFrbmYtD7L++S7DK0Qqrc0LyAVYe7Xg="; 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 nativeCheckInputs = [ 35 freezegun 36 mock 37 nose2 38 pytz 39 ]; 40 41 pythonImportsCheck = [ 42 "duo_client" 43 ]; 44 45 meta = with lib; { 46 description = "Python library for interacting with the Duo Auth, Admin, and Accounts APIs"; 47 homepage = "https://github.com/duosecurity/duo_client_python"; 48 changelog = "https://github.com/duosecurity/duo_client_python/releases/tag/${version}"; 49 license = licenses.bsd3; 50 maintainers = with maintainers; [ SuperSandro2000 ]; 51 }; 52}