nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 54 lines 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 requests-mock, 7 pytest-asyncio, 8 pytestCheckHook, 9 python-dateutil, 10 requests, 11}: 12 13buildPythonPackage rec { 14 pname = "flipr-api"; 15 version = "1.6.1"; 16 pyproject = true; 17 18 src = fetchFromGitHub { 19 owner = "cnico"; 20 repo = "flipr-api"; 21 tag = version; 22 hash = "sha256-/px8NuBwukAPMxdXvHdyfO/j/a9UatKbdrjDNuT0f4k="; 23 }; 24 25 build-system = [ poetry-core ]; 26 27 dependencies = [ 28 python-dateutil 29 requests 30 ]; 31 32 nativeCheckInputs = [ 33 requests-mock 34 pytest-asyncio 35 pytestCheckHook 36 ]; 37 38 env = { 39 # used in test_session 40 FLIPR_USERNAME = "foobar"; 41 FLIPR_PASSWORD = "secret"; 42 }; 43 44 pythonImportsCheck = [ "flipr_api" ]; 45 46 meta = { 47 description = "Python client for Flipr API"; 48 mainProgram = "flipr-api"; 49 homepage = "https://github.com/cnico/flipr-api"; 50 changelog = "https://github.com/cnico/flipr-api/releases/tag/${version}"; 51 license = lib.licenses.gpl3Plus; 52 maintainers = with lib.maintainers; [ fab ]; 53 }; 54}