2023-12-24 14:14:02 -07:00
|
|
|
{ buildPythonPackage
|
|
|
|
, buildHomeAssistantComponent
|
|
|
|
, setuptools-scm
|
|
|
|
, setuptools
|
|
|
|
, fetchFromGitHub
|
|
|
|
, fetchPypi
|
2024-01-14 08:00:36 -07:00
|
|
|
, aiohttp
|
|
|
|
, requests
|
2023-12-24 14:14:02 -07:00
|
|
|
, ...
|
|
|
|
}:
|
|
|
|
let
|
2024-01-14 08:00:36 -07:00
|
|
|
my-python-openevse-http = buildPythonPackage rec {
|
2023-12-24 14:14:02 -07:00
|
|
|
pname = "python-openevse-http";
|
2024-08-10 18:58:09 -06:00
|
|
|
version = "0.1.61";
|
2023-12-24 14:14:02 -07:00
|
|
|
|
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
2024-01-14 08:00:36 -07:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
aiohttp
|
|
|
|
];
|
2023-12-24 14:14:02 -07:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-08-10 18:58:09 -06:00
|
|
|
hash = "sha256-wwo5D2kaPb4LfI8N3k0L+4FFZBlq2qG+d3sk/OpoExA=";
|
2023-12-24 14:14:02 -07:00
|
|
|
};
|
|
|
|
};
|
|
|
|
in
|
|
|
|
buildHomeAssistantComponent rec {
|
|
|
|
owner = "firstof9";
|
|
|
|
domain = "openevse";
|
2024-08-10 18:58:09 -06:00
|
|
|
version = "2.1.45";
|
2023-12-24 14:14:02 -07:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2024-01-14 08:00:36 -07:00
|
|
|
my-python-openevse-http
|
2023-12-24 14:14:02 -07:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [ setuptools-scm ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
inherit owner;
|
|
|
|
repo = domain;
|
2024-01-05 13:21:04 -07:00
|
|
|
rev = version;
|
2024-08-10 18:58:09 -06:00
|
|
|
hash = "sha256-Z+YX9JdfmcZPrD6KHg5ZjLJY9vtR4VQM0l1Vu5SZ+m8=";
|
2023-12-24 14:14:02 -07:00
|
|
|
};
|
|
|
|
}
|