Files
nixpkgs/pkgs/development/python-modules/duo-client/default.nix
T
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

50 lines
925 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, freezegun
, mock
, nose2
, pytz
, setuptools
, six
}:
buildPythonPackage rec {
pname = "duo-client";
version = "4.5.0";
src = fetchFromGitHub {
owner = "duosecurity";
repo = "duo_client_python";
rev = version;
sha256 = "sha256-9ADFtCrSJ4Y2QQY5YC/BMvoVZs2vaYHkhIM/rBlZm4I=";
};
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";
license = licenses.bsd3;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}