python312Packages.pyosohotwaterapi: modernize

This commit is contained in:
Peder Bergebakken Sundt 2024-08-24 18:50:24 +02:00
parent 50fd60c9f5
commit e61286763b

View File

@ -25,18 +25,15 @@ buildPythonPackage rec {
hash = "sha256-7FLGmmndrFqSl4oC8QFIYNlFJPr+xbiZG5ZRt4vx8+s=";
};
postPatch = ''
# https://github.com/osohotwateriot/apyosohotwaterapi/pull/3
substituteInPlace requirements.txt \
--replace "pre-commit" ""
'';
# https://github.com/osohotwateriot/apyosohotwaterapi/pull/3
pythonRemoveDeps = [ "pre-commit" ];
nativeBuildInputs = [
build-system = [
setuptools
unasync
];
propagatedBuildInputs = [
dependencies = [
aiohttp
loguru
numpy