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

@@ -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;