1{ lib
2, buildPythonPackage
3, pythonOlder
4, fetchFromGitHub
5, python-dateutil
6, requests
7, pytestCheckHook
8}:
9
10buildPythonPackage rec {
11 pname = "srpenergy";
12 version = "1.3.2";
13
14 disabled = pythonOlder "3.6";
15
16 src = fetchFromGitHub {
17 owner = "lamoreauxlab";
18 repo = "srpenergy-api-client-python";
19 rev = version;
20 sha256 = "03kldjk90mrnzf2hpd7xky0lpph853mjxc34kfa2m5mbpbpkxz9c";
21 };
22
23 propagatedBuildInputs = [
24 python-dateutil
25 requests
26 ];
27
28 checkInputs = [
29 pytestCheckHook
30 ];
31
32 pythonImportsCheck = [ "srpenergy.client" ];
33
34 meta = with lib; {
35 description = "Unofficial Python module for interacting with Srp Energy data";
36 homepage = "https://github.com/lamoreauxlab/srpenergy-api-client-python";
37 license = licenses.mit;
38 maintainers = with maintainers; [ dotlambda ];
39 };
40}