xin/pkgs/openevse.nix

52 lines
929 B
Nix
Raw Normal View History

{ buildPythonPackage
, buildHomeAssistantComponent
, setuptools-scm
, setuptools
, fetchFromGitHub
, fetchPypi
2024-01-14 08:00:36 -07:00
, aiohttp
, requests
, ...
}:
let
2024-01-14 08:00:36 -07:00
my-python-openevse-http = buildPythonPackage rec {
pname = "python-openevse-http";
2024-04-24 05:57:34 -06:00
version = "0.1.60";
pyproject = true;
nativeBuildInputs = [ setuptools ];
2024-01-14 08:00:36 -07:00
propagatedBuildInputs = [
requests
aiohttp
];
src = fetchPypi {
inherit pname version;
2024-04-24 05:57:34 -06:00
hash = "sha256-y2ZB8dQhWjaFslaAqfvXbEE20Isa0I02qVk50O8nJJI=";
};
};
in
buildHomeAssistantComponent rec {
owner = "firstof9";
domain = "openevse";
2024-06-26 13:06:13 -06:00
version = "2.1.42";
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
2024-01-14 08:00:36 -07:00
my-python-openevse-http
];
buildInputs = [ setuptools-scm ];
src = fetchFromGitHub {
inherit owner;
repo = domain;
2024-01-05 13:21:04 -07:00
rev = version;
2024-06-26 13:06:13 -06:00
hash = "sha256-TbBp6MQOsveCt/P3CnMwBm0xPxkWYEQdOPbT2us28d4=";
};
}