nixpkgs/pkgs/development/python-modules/python-openevse-http/default.nix

49 lines
1 KiB
Nix

{
lib,
aiohttp,
aioresponses,
awesomeversion,
buildPythonPackage,
fetchFromGitHub,
freezegun,
pytestCheckHook,
pytest-asyncio,
setuptools,
}:
buildPythonPackage (finalAttrs: {
pname = "python-openevse-http";
version = "0.2.5";
pyproject = true;
src = fetchFromGitHub {
owner = "firstof9";
repo = "python-openevse-http";
tag = finalAttrs.version;
hash = "sha256-HcrcjMJTDZz/5ijluv3Ow77A24jOWg26nlbq/mBcmAA=";
};
build-system = [ setuptools ];
dependencies = [
aiohttp
awesomeversion
];
nativeCheckInputs = [
aioresponses
freezegun
pytestCheckHook
pytest-asyncio
];
pythonImportsCheck = [ "openevsehttp" ];
meta = {
description = "Python wrapper for OpenEVSE HTTP API";
homepage = "https://github.com/firstof9/python-openevse-http";
changelog = "https://github.com/firstof9/python-openevse-http/releases/tag/${finalAttrs.version}";
license = lib.licenses.asl20;
maintainers = [ lib.maintainers.jamiemagee ];
};
})