Skip to content

Commit

Permalink
python3Packages.wled: 0.4.4 -> 0.5.0 (#126319)
Browse files Browse the repository at this point in the history
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
  • Loading branch information
fabaff and SuperSandro2000 committed Jun 14, 2021
1 parent 821b34e commit 8a362be
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions pkgs/development/python-modules/wled/default.nix
Expand Up @@ -4,6 +4,7 @@
, fetchFromGitHub
, aiohttp
, backoff
, poetry-core
, packaging
, yarl
, aresponses
Expand All @@ -13,16 +14,21 @@

buildPythonPackage rec {
pname = "wled";
version = "0.4.4";
disabled = pythonOlder "3.7";
version = "0.5.0";
disabled = pythonOlder "3.8";
format = "pyproject";

src = fetchFromGitHub {
owner = "frenck";
repo = "python-wled";
rev = "v${version}";
sha256 = "1adh23v4c9kia3ddqdq0brksd5rhgh4ff7l5hil8klx4dmkrjfz3";
sha256 = "123806fmdihdf9y8dqp5rli5c4i9a74j9rmhay8m68igm1326d5f";
};

nativeBuildInputs = [
poetry-core
];

propagatedBuildInputs = [
aiohttp
backoff
Expand All @@ -36,6 +42,13 @@ buildPythonPackage rec {
pytestCheckHook
];

postPatch = ''
# Upstream doesn't set a version for the pyproject.toml
substituteInPlace pyproject.toml \
--replace "0.0.0" "${version}" \
--replace "--cov" ""
'';

pythonImportsCheck = [ "wled" ];

meta = with lib; {
Expand Down

0 comments on commit 8a362be

Please sign in to comment.