idk
This commit is contained in:
@@ -13,7 +13,7 @@ buildHomeAssistantComponent rec {
|
||||
owner = owner;
|
||||
repo = "ha-bedjet";
|
||||
tag = version;
|
||||
hash = "sha256-sb6zC/kFtIMVr6+/U00jcFwOZxAedNutRONq/LZfdKI=";
|
||||
hash = "sha256-FAuL3A8wtGwt+GM180A7wMlIvJvGoLmxNLCtnomxV3o=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = with python3Packages; [
|
||||
|
||||
@@ -15,7 +15,7 @@ buildHomeAssistantComponent rec {
|
||||
owner = owner;
|
||||
repo = "ha_gehome";
|
||||
tag = version;
|
||||
hash = "sha256-p34yBtoqAMVCiAZKyxWPTVOSjPaueD1sb5ZEzWF2OZ4=";
|
||||
hash = "sha256-7c2GfTagNsIsSiT/sCqSV+BZZJMcvlsecDD+ZDZx9BA=";
|
||||
};
|
||||
|
||||
nativeBuildInputs =
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
{ python3Packages, fetchFromGitHub, ... }:
|
||||
{
|
||||
python3Packages,
|
||||
fetchFromGitHub,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
python3Packages.buildPythonPackage rec {
|
||||
pname = "nanokvm";
|
||||
version = "0.1.0";
|
||||
@@ -11,18 +16,49 @@ python3Packages.buildPythonPackage rec {
|
||||
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; [
|
||||
setuptools
|
||||
setuptools-git-versioning
|
||||
];
|
||||
|
||||
nativeBuildInputs = with python3Packages; [
|
||||
propagatedBuildInputs = with python3Packages; [
|
||||
aiohttp
|
||||
cryptography
|
||||
yarl
|
||||
paramiko
|
||||
pillow
|
||||
pydantic
|
||||
paramiko
|
||||
];
|
||||
|
||||
doCheck = false;
|
||||
|
||||
@@ -16,8 +16,8 @@ python3Packages.buildPythonPackage rec {
|
||||
src = fetchFromGitHub {
|
||||
owner = "humbertogontijo";
|
||||
repo = "python-roborock";
|
||||
tag = "v4.17.2";
|
||||
hash = "sha256-i2XVzhZP+qA0pAv1qcaxGlgvhcz4efELO9t4vylRGdw=";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-u4By7GmCvFrAnVVkFeoJCRX3Pey3Z3OF6uM+u9RTi7E=";
|
||||
};
|
||||
|
||||
pythonRelaxDeps = [
|
||||
|
||||
Reference in New Issue
Block a user