1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pytestCheckHook
5, pythonOlder
6, pyjwt
7, ratelimit
8, pytz
9, requests
10, requests-mock
11}:
12
13buildPythonPackage rec {
14 pname = "pyflume";
15 version = "0.7.1";
16 disabled = pythonOlder "3.7";
17
18 src = fetchFromGitHub {
19 owner = "ChrisMandich";
20 repo = "PyFlume";
21 rev = "v${version}";
22 sha256 = "sha256-Ka90n9Esv6tm310DjYeosBUhudeVoEJzt45L40+0GwQ=";
23 };
24
25 propagatedBuildInputs = [
26 pyjwt
27 ratelimit
28 pytz
29 requests
30 ];
31
32 checkInputs = [
33 requests-mock
34 pytestCheckHook
35 ];
36
37 pythonImportsCheck = [ "pyflume" ];
38
39 meta = with lib; {
40 description = "Python module to work with Flume sensors";
41 homepage = "https://github.com/ChrisMandich/PyFlume";
42 license = with licenses; [ mit ];
43 maintainers = with maintainers; [ fab ];
44 };
45}