Files
nixpkgs/pkgs/development/python-modules/flipr-api/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

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 = {
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 = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ fab ];
};
}