depot/third_party/nixpkgs/pkgs/development/python-modules/aiohwenergy/default.nix
Default email 81047829ea Project import generated by Copybara.
GitOrigin-RevId: 48d63e924a2666baf37f4f14a18f19347fbd54a2
2022-02-10 15:34:41 -05:00

40 lines
764 B
Nix

{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "aiohwenergy";
version = "0.8.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "DCSBL";
repo = pname;
rev = version;
sha256 = "sha256-WfkwIxyDzLNzhWNWST/V3iN9Bhu2oXDwGiA5UXCq5ho=";
};
propagatedBuildInputs = [
aiohttp
];
# Project has no tests
doCheck = false;
pythonImportsCheck = [
"aiohwenergy"
];
meta = with lib; {
description = "Python library to interact with the HomeWizard Energy devices API";
homepage = "https://github.com/DCSBL/aiohwenergy";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}