python3Packages.vilfo-api-client: migrate to pyproject (#524168)

This commit is contained in:
Yohann Boniface
2026-05-27 09:17:55 +00:00
committed by GitHub
@@ -8,28 +8,32 @@
semver,
pytestCheckHook,
responses,
setuptools,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "vilfo-api-client";
version = "0.5.0";
format = "setuptools";
pyproject = true;
src = fetchFromGitHub {
owner = "ManneW";
repo = "vilfo-api-client-python";
tag = version;
tag = finalAttrs.version;
hash = "sha256-ZlmriBd+M+54ux/UNYa355mkz808/NxSz7IzmWouA0c=";
};
build-system = [
setuptools
setuptools-scm
];
postPatch = ''
substituteInPlace setup.cfg \
--replace "get-mac" "getmac"
--replace-fail "get-mac" "getmac"
'';
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [
dependencies = [
getmac
requests
semver
@@ -45,7 +49,8 @@ buildPythonPackage rec {
meta = {
description = "Simple wrapper client for the Vilfo router API";
homepage = "https://github.com/ManneW/vilfo-api-client-python";
changelog = "https://github.com/ManneW/vilfo-api-client-python/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}
})