python3Packages.webthing: migrate to pyproject (#532302)

This commit is contained in:
Yohann Boniface
2026-06-16 21:42:49 +00:00
committed by GitHub
@@ -2,6 +2,7 @@
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
ifaddr,
jsonschema,
pyee,
@@ -9,19 +10,23 @@
zeroconf,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "webthing";
version = "0.15.0";
format = "setuptools";
pyproject = true;
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "WebThingsIO";
repo = "webthing-python";
rev = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-z4GVycdq25QZxuzZPLg6nhj0MAD1bHrsqph4yHgmRhg=";
};
propagatedBuildInputs = [
build-system = [ setuptools ];
dependencies = [
ifaddr
jsonschema
pyee
@@ -40,4 +45,4 @@ buildPythonPackage rec {
license = with lib.licenses; [ mpl20 ];
maintainers = with lib.maintainers; [ fab ];
};
}
})