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