biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / duo-client / default.nix
blobfe5fd07044cae052cffa9a3cad4eb60722688a10
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   freezegun,
6   mock,
7   pytestCheckHook,
8   pythonOlder,
9   pytz,
10   setuptools,
11   six,
14 buildPythonPackage rec {
15   pname = "duo-client";
16   version = "5.3.0";
17   pyproject = true;
19   disabled = pythonOlder "3.7";
21   src = fetchFromGitHub {
22     owner = "duosecurity";
23     repo = "duo_client_python";
24     rev = "refs/tags/${version}";
25     hash = "sha256-7cifxNSBHbX7QZ52Sy1hm5xzZYcLZOkloT6q9P7TO6A=";
26   };
28   postPatch = ''
29     substituteInPlace requirements-dev.txt \
30       --replace-fail "dlint" "" \
31       --replace-fail "flake8" ""
32   '';
34   build-system = [ setuptools ];
36   dependencies = [ six ];
38   nativeCheckInputs = [
39     freezegun
40     mock
41     pytestCheckHook
42     pytz
43   ];
45   pythonImportsCheck = [ "duo_client" ];
47   disabledTests = [
48     # Tests require network access
49     "test_server_hostname"
50     "test_server_hostname_with_port"
51     "test_get_billing_edition"
52     "test_get_telephony_credits"
53     "test_set_business_billing_edition"
54     "test_set_enterprise_billing_edition"
55     "test_set_telephony_credits"
56   ];
58   meta = with lib; {
59     description = "Python library for interacting with the Duo Auth, Admin, and Accounts APIs";
60     homepage = "https://github.com/duosecurity/duo_client_python";
61     changelog = "https://github.com/duosecurity/duo_client_python/releases/tag/${version}";
62     license = licenses.bsd3;
63     maintainers = [ ];
64   };