1{
2 lib,
3 buildPythonPackage,
4 docopt,
5 fetchFromGitHub,
6 pythonOlder,
7 pytz,
8 requests,
9 setuptools,
10}:
11
12buildPythonPackage rec {
13 pname = "epion";
14 version = "0.0.3";
15 pyproject = true;
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchFromGitHub {
20 owner = "devenzo-com";
21 repo = "epion_python";
22 tag = version;
23 hash = "sha256-9tE/SqR+GHZXeE+bOtXkLu+4jy1vO8WoiLjb6MJazxQ=";
24 };
25
26 nativeBuildInputs = [ setuptools ];
27
28 propagatedBuildInputs = [
29 docopt
30 pytz
31 requests
32 ];
33
34 # Module has no tests
35 doCheck = false;
36
37 pythonImportsCheck = [ "epion" ];
38
39 meta = with lib; {
40 description = "Module to access Epion sensor data";
41 homepage = "https://github.com/devenzo-com/epion_python";
42 changelog = "https://github.com/devenzo-com/epion_python/releases/tag/${version}";
43 license = licenses.mit;
44 maintainers = with maintainers; [ fab ];
45 };
46}