at master 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 requests-mock, 7 pythonOlder, 8 pytest-asyncio, 9 pytestCheckHook, 10 python-dateutil, 11 requests, 12}: 13 14buildPythonPackage rec { 15 pname = "flipr-api"; 16 version = "1.6.1"; 17 pyproject = true; 18 19 disabled = pythonOlder "3.9"; 20 21 src = fetchFromGitHub { 22 owner = "cnico"; 23 repo = "flipr-api"; 24 tag = version; 25 hash = "sha256-/px8NuBwukAPMxdXvHdyfO/j/a9UatKbdrjDNuT0f4k="; 26 }; 27 28 build-system = [ poetry-core ]; 29 30 dependencies = [ 31 python-dateutil 32 requests 33 ]; 34 35 nativeCheckInputs = [ 36 requests-mock 37 pytest-asyncio 38 pytestCheckHook 39 ]; 40 41 env = { 42 # used in test_session 43 FLIPR_USERNAME = "foobar"; 44 FLIPR_PASSWORD = "secret"; 45 }; 46 47 pythonImportsCheck = [ "flipr_api" ]; 48 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 }; 57}