ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / sense-energy / default.nix
blobb3f2d6955709d2cf1c4f4a73049fb3cf567e3b36
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , aiohttp
5 , pythonOlder
6 , requests
7 , websocket-client
8 , websockets
9 }:
11 buildPythonPackage rec {
12   pname = "sense-energy";
13   version = "0.10.4";
14   format = "setuptools";
16   disabled = pythonOlder "3.7";
18   src = fetchFromGitHub {
19     owner = "scottbonline";
20     repo = "sense";
21     rev = version;
22     hash = "sha256-yflI17lLZMXXB0ye+jz3VWWMdZtcBTwbg8deA4ENmWw=";
23   };
25   propagatedBuildInputs = [
26     aiohttp
27     requests
28     websocket-client
29     websockets
30   ];
32   # no tests implemented
33   doCheck = false;
35   pythonImportsCheck = [
36     "sense_energy"
37   ];
39   meta = with lib; {
40     description = "API for the Sense Energy Monitor";
41     homepage = "https://github.com/scottbonline/sense";
42     license = licenses.mit;
43     maintainers = with maintainers; [ dotlambda ];
44   };