This commit is contained in:
mjallen18
2026-03-03 14:18:40 -06:00
parent 9a962363e8
commit 85b69d69ff
4 changed files with 44 additions and 8 deletions

View File

@@ -13,7 +13,7 @@ buildHomeAssistantComponent rec {
owner = owner; owner = owner;
repo = "ha-bedjet"; repo = "ha-bedjet";
tag = version; tag = version;
hash = "sha256-sb6zC/kFtIMVr6+/U00jcFwOZxAedNutRONq/LZfdKI="; hash = "sha256-FAuL3A8wtGwt+GM180A7wMlIvJvGoLmxNLCtnomxV3o=";
}; };
nativeBuildInputs = with python3Packages; [ nativeBuildInputs = with python3Packages; [

View File

@@ -15,7 +15,7 @@ buildHomeAssistantComponent rec {
owner = owner; owner = owner;
repo = "ha_gehome"; repo = "ha_gehome";
tag = version; tag = version;
hash = "sha256-p34yBtoqAMVCiAZKyxWPTVOSjPaueD1sb5ZEzWF2OZ4="; hash = "sha256-7c2GfTagNsIsSiT/sCqSV+BZZJMcvlsecDD+ZDZx9BA=";
}; };
nativeBuildInputs = nativeBuildInputs =

View File

@@ -1,4 +1,9 @@
{ python3Packages, fetchFromGitHub, ... }: {
python3Packages,
fetchFromGitHub,
lib,
...
}:
python3Packages.buildPythonPackage rec { python3Packages.buildPythonPackage rec {
pname = "nanokvm"; pname = "nanokvm";
version = "0.1.0"; version = "0.1.0";
@@ -11,18 +16,49 @@ python3Packages.buildPythonPackage rec {
sha256 = "sha256-vIxvQtjaInnWQce7syiOWpP2kaw0IVw03HPovnB2J5M="; sha256 = "sha256-vIxvQtjaInnWQce7syiOWpP2kaw0IVw03HPovnB2J5M=";
}; };
prePatch = ''
rm -f pyproject.toml
cat > pyproject.toml << 'EOF'
[build-system]
requires = ["setuptools>=61.0.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "nanokvm"
version = "0.1.0"
description = "Async client for NanoKVM devices."
urls = {repository = "https://github.com/puddly/python-nanokvm"}
authors = [
{name = "puddly", email = "puddly3@gmail.com"}
]
readme = "README.md"
license = {text = "Apache-2.0"}
requires-python = ">=3.11"
dependencies = [
"aiohttp",
"cryptography",
"yarl",
"pillow",
"pydantic",
"paramiko",
]
[tool.setuptools.packages.find]
exclude = ["tests", "tests.*"]
EOF
'';
buildInputs = with python3Packages; [ buildInputs = with python3Packages; [
setuptools setuptools
setuptools-git-versioning
]; ];
nativeBuildInputs = with python3Packages; [ propagatedBuildInputs = with python3Packages; [
aiohttp aiohttp
cryptography cryptography
yarl yarl
paramiko
pillow pillow
pydantic pydantic
paramiko
]; ];
doCheck = false; doCheck = false;

View File

@@ -16,8 +16,8 @@ python3Packages.buildPythonPackage rec {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "humbertogontijo"; owner = "humbertogontijo";
repo = "python-roborock"; repo = "python-roborock";
tag = "v4.17.2"; tag = "v${version}";
hash = "sha256-i2XVzhZP+qA0pAv1qcaxGlgvhcz4efELO9t4vylRGdw="; hash = "sha256-u4By7GmCvFrAnVVkFeoJCRX3Pey3Z3OF6uM+u9RTi7E=";
}; };
pythonRelaxDeps = [ pythonRelaxDeps = [