blob: 1f23aaa2481e1138182c6811064351d11822ca1f (
plain) (
blame)
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
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, requests-mock
, pythonOlder
, pytest-asyncio
, pytestCheckHook
, python-dateutil
, requests
}:
buildPythonPackage rec {
pname = "flipr-api";
version = "1.5.0";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "cnico";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-IAxB3i/HkwO5sjDh2aBCtijOcG0VIbatQjTWIh0inoM=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
python-dateutil
requests
];
nativeCheckInputs = [
requests-mock
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [
"flipr_api"
];
meta = with lib; {
description = "Python client for Flipr API";
homepage = "https://github.com/cnico/flipr-api";
changelog = "https://github.com/cnico/flipr-api/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}
|