2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
poetry-core,
|
|
|
|
requests-mock,
|
|
|
|
pythonOlder,
|
|
|
|
pytest-asyncio,
|
|
|
|
pytestCheckHook,
|
|
|
|
python-dateutil,
|
|
|
|
requests,
|
2021-09-26 12:46:18 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "flipr-api";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "1.6.1";
|
2024-01-25 14:12:00 +00:00
|
|
|
pyproject = true;
|
2021-09-26 12:46:18 +00:00
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
disabled = pythonOlder "3.9";
|
2021-09-26 12:46:18 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cnico";
|
2024-01-25 14:12:00 +00:00
|
|
|
repo = "flipr-api";
|
2023-03-15 16:39:30 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-/px8NuBwukAPMxdXvHdyfO/j/a9UatKbdrjDNuT0f4k=";
|
2021-09-26 12:46:18 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
build-system = [ poetry-core ];
|
2021-09-26 12:46:18 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
dependencies = [
|
2021-09-26 12:46:18 +00:00
|
|
|
python-dateutil
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-09-26 12:46:18 +00:00
|
|
|
requests-mock
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
env = {
|
|
|
|
# used in test_session
|
|
|
|
FLIPR_USERNAME = "foobar";
|
|
|
|
FLIPR_PASSWORD = "secret";
|
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "flipr_api" ];
|
2021-09-26 12:46:18 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python client for Flipr API";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "flipr-api";
|
2021-09-26 12:46:18 +00:00
|
|
|
homepage = "https://github.com/cnico/flipr-api";
|
2023-03-15 16:39:30 +00:00
|
|
|
changelog = "https://github.com/cnico/flipr-api/releases/tag/${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2021-09-26 12:46:18 +00:00
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|