depot/third_party/nixpkgs/pkgs/development/python-modules/duo-client/default.nix
Default email 5557ff764c Project import generated by Copybara.
GitOrigin-RevId: 988cc958c57ce4350ec248d2d53087777f9e1949
2023-02-22 11:55:15 +01:00

52 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, freezegun
, mock
, nose2
, pytz
, setuptools
, six
}:
buildPythonPackage rec {
pname = "duo-client";
version = "4.6.1";
src = fetchFromGitHub {
owner = "duosecurity";
repo = "duo_client_python";
rev = "refs/tags/${version}";
hash = "sha256-1xasV9iLbSODy8q1wEVDvELdmSQwj3qVCXOE94lyjFU=";
};
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; [ SuperSandro2000 ];
};
}