nixpkgs/pkgs/development/python-modules/aiohwenergy/default.nix
Martin Weinelt 0215034f25 python3.pkgs: Migrate fetchers to use hash
when they already rely on SRI hashes.
2023-03-03 23:59:29 +01:00

41 lines
762 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;
hash = "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 ];
};
}