blob: c1037c6943627afea72de07a8c69e492d7097e68 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
requests-mock,
pytest-asyncio,
pytestCheckHook,
python-dateutil,
requests,
}:
buildPythonPackage rec {
pname = "flipr-api";
version = "1.6.1";
pyproject = true;
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 ];
};
}
|