@@ -4,6 +4,7 @@
44, fetchFromGitHub
55, aiohttp
66, backoff
7+, poetry-core
78, packaging
89, yarl
910, aresponses
@@ -13,16 +14,21 @@
1314
1415buildPythonPackage rec {
1516 pname = "wled";
16− version = "0.4.4";
17− disabled = pythonOlder "3.7";
17+ version = "0.5.0";
18+ disabled = pythonOlder "3.8";
19+ format = "pyproject";
1820
1921 src = fetchFromGitHub {
2022 owner = "frenck";
2123 repo = "python-wled";
2224 rev = "v${version}";
23− sha256 = "1adh23v4c9kia3ddqdq0brksd5rhgh4ff7l5hil8klx4dmkrjfz3";
25+ sha256 = "123806fmdihdf9y8dqp5rli5c4i9a74j9rmhay8m68igm1326d5f";
2426 };
2527
28+ nativeBuildInputs = [
29+ poetry-core
30+ ];
31+
2632 propagatedBuildInputs = [
2733 aiohttp
2834 backoff
@@ -36,6 +42,13 @@ buildPythonPackage rec {
3642 pytestCheckHook
3743 ];
3844
45+ postPatch = ''
46+ # Upstream doesn't set a version for the pyproject.toml
47+ substituteInPlace pyproject.toml \
48+ --replace "0.0.0" "${version}" \
49+ --replace "--cov" ""
50+ '';
51+
3952 pythonImportsCheck = [ "wled" ];
4053
4154 meta = with lib; {