2023-12-24 14:14:02 -07:00
|
|
|
{ buildPythonPackage
|
|
|
|
, buildHomeAssistantComponent
|
|
|
|
, setuptools-scm
|
|
|
|
, setuptools
|
|
|
|
, fetchFromGitHub
|
|
|
|
, fetchPypi
|
|
|
|
, ...
|
|
|
|
}:
|
|
|
|
let
|
|
|
|
python-openevse-http = buildPythonPackage rec {
|
|
|
|
pname = "python-openevse-http";
|
2024-01-05 13:21:04 -07:00
|
|
|
version = "0.1.58";
|
2023-12-24 14:14:02 -07:00
|
|
|
|
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-01-05 13:21:04 -07:00
|
|
|
hash = "sha256-Ryjg1I51ATt+YBj5vxKhNp7NiIxXf0twYV3U+6MVpX8=";
|
2023-12-24 14:14:02 -07:00
|
|
|
};
|
|
|
|
};
|
|
|
|
in
|
|
|
|
buildHomeAssistantComponent rec {
|
|
|
|
owner = "firstof9";
|
|
|
|
domain = "openevse";
|
2024-01-05 13:21:04 -07:00
|
|
|
version = "2.1.33";
|
2023-12-24 14:14:02 -07:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
python-openevse-http
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [ setuptools-scm ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
inherit owner;
|
|
|
|
repo = domain;
|
2024-01-05 13:21:04 -07:00
|
|
|
rev = version;
|
|
|
|
hash = "sha256-N9512bwuq1hfdcO+2TNa+Yk0HkOamYjx8xd6rNctT2c=";
|
2023-12-24 14:14:02 -07:00
|
|
|
};
|
|
|
|
}
|