forked from mirrors/nixpkgs
43 lines
774 B
Nix
43 lines
774 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, aiohttp
|
|
, requests
|
|
, websocket-client
|
|
, websockets
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "sense-energy";
|
|
version = "0.9.3";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "scottbonline";
|
|
repo = "sense";
|
|
rev = version;
|
|
sha256 = "sha256-LUM7SP03U3mRxCTjgxPRXh/ZLz15R04zBWOxLKnan98=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
requests
|
|
websocket-client
|
|
websockets
|
|
];
|
|
|
|
# no tests implemented
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"sense_energy"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "API for the Sense Energy Monitor";
|
|
homepage = "https://github.com/scottbonline/sense";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
};
|
|
}
|