1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, poetry-core
5, requests-mock
6, pythonOlder
7, pytest-asyncio
8, pytestCheckHook
9, python-dateutil
10, requests
11}:
12
13buildPythonPackage rec {
14 pname = "flipr-api";
15 version = "1.4.4";
16 format = "pyproject";
17
18 disabled = pythonOlder "3.6";
19
20 src = fetchFromGitHub {
21 owner = "cnico";
22 repo = pname;
23 rev = version;
24 sha256 = "sha256-LcxLJQ2MAif4yC+/SvO7IEa1lNOV67FgJU1UWT4ope4=";
25 };
26
27 nativeBuildInputs = [
28 poetry-core
29 ];
30
31 propagatedBuildInputs = [
32 python-dateutil
33 requests
34 ];
35
36 checkInputs = [
37 requests-mock
38 pytest-asyncio
39 pytestCheckHook
40 ];
41
42 pythonImportsCheck = [
43 "flipr_api"
44 ];
45
46 meta = with lib; {
47 description = "Python client for Flipr API";
48 homepage = "https://github.com/cnico/flipr-api";
49 license = licenses.mit;
50 maintainers = with maintainers; [ fab ];
51 };
52}