Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
58 lines
1.1 KiB
Nix
58 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
poetry-core,
|
|
requests-mock,
|
|
pythonOlder,
|
|
pytest-asyncio,
|
|
pytestCheckHook,
|
|
python-dateutil,
|
|
requests,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "flipr-api";
|
|
version = "1.6.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cnico";
|
|
repo = "flipr-api";
|
|
tag = version;
|
|
hash = "sha256-/px8NuBwukAPMxdXvHdyfO/j/a9UatKbdrjDNuT0f4k=";
|
|
};
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
dependencies = [
|
|
python-dateutil
|
|
requests
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
requests-mock
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
];
|
|
|
|
env = {
|
|
# used in test_session
|
|
FLIPR_USERNAME = "foobar";
|
|
FLIPR_PASSWORD = "secret";
|
|
};
|
|
|
|
pythonImportsCheck = [ "flipr_api" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python client for Flipr API";
|
|
mainProgram = "flipr-api";
|
|
homepage = "https://github.com/cnico/flipr-api";
|
|
changelog = "https://github.com/cnico/flipr-api/releases/tag/${version}";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|