anki-bin: 24.06.3 -> 24.11 (#360722)
[NixPkgs.git] / pkgs / development / python-modules / flipr-api / default.nix
blob8b725ccc20509592ff4ad24482d10b9f5dddfc96
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   poetry-core,
6   requests-mock,
7   pythonOlder,
8   pytest-asyncio,
9   pytestCheckHook,
10   python-dateutil,
11   requests,
14 buildPythonPackage rec {
15   pname = "flipr-api";
16   version = "1.6.1";
17   pyproject = true;
19   disabled = pythonOlder "3.9";
21   src = fetchFromGitHub {
22     owner = "cnico";
23     repo = "flipr-api";
24     rev = "refs/tags/${version}";
25     hash = "sha256-/px8NuBwukAPMxdXvHdyfO/j/a9UatKbdrjDNuT0f4k=";
26   };
28   build-system = [ poetry-core ];
30   dependencies = [
31     python-dateutil
32     requests
33   ];
35   nativeCheckInputs = [
36     requests-mock
37     pytest-asyncio
38     pytestCheckHook
39   ];
41   env = {
42     # used in test_session
43     FLIPR_USERNAME = "foobar";
44     FLIPR_PASSWORD = "secret";
45   };
47   pythonImportsCheck = [ "flipr_api" ];
49   meta = with lib; {
50     description = "Python client for Flipr API";
51     mainProgram = "flipr-api";
52     homepage = "https://github.com/cnico/flipr-api";
53     changelog = "https://github.com/cnico/flipr-api/releases/tag/${version}";
54     license = licenses.gpl3Plus;
55     maintainers = with maintainers; [ fab ];
56   };