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.5.1"; 17 pyproject = true; 18 19 disabled = pythonOlder "3.9"; 20 21 src = fetchFromGitHub { 22 owner = "cnico"; 23 repo = "flipr-api"; 24 rev = "refs/tags/${version}"; 25 hash = "sha256-xgLi2lH+EPPNlMixqOzdBGVLuoJh5dhZ2tHZ0UH+lOk="; 26 }; 27 28 nativeBuildInputs = [ poetry-core ]; 29 30 propagatedBuildInputs = [ 31 python-dateutil 32 requests 33 ]; 34 35 nativeCheckInputs = [ 36 requests-mock 37 pytest-asyncio 38 pytestCheckHook 39 ]; 40 41 pythonImportsCheck = [ "flipr_api" ]; 42 43 meta = with lib; { 44 description = "Python client for Flipr API"; 45 mainProgram = "flipr-api"; 46 homepage = "https://github.com/cnico/flipr-api"; 47 changelog = "https://github.com/cnico/flipr-api/releases/tag/${version}"; 48 license = licenses.mit; 49 maintainers = with maintainers; [ fab ]; 50 }; 51}