Skip to content

Commit

Permalink
python312Packages.enocean: modernize
Browse files Browse the repository at this point in the history
  • Loading branch information
dotlambda committed Jul 9, 2024
1 parent d7d625e commit b3f5f3f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions pkgs/development/python-modules/enocean/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
buildPythonPackage,
fetchFromGitHub,
fetchpatch2,
setuptools,
beautifulsoup4,
enum-compat,
pyserial,
Expand All @@ -12,13 +13,13 @@
buildPythonPackage rec {
pname = "enocean";
version = "0.60.1";
format = "setuptools";
pyproject = true;

src = fetchFromGitHub {
owner = "kipe";
repo = "enocean";
rev = version;
sha256 = "0cbcvvy3qaqv8925z608qmkc1l914crzw79krwrz2vpm2fyribab";
rev = "refs/tags/${version}";
hash = "sha256-S62YvRP1bvEzzzMd/jMjIdHAZsUImF9EQhsrPPzebDE=";
};

patches = [
Expand All @@ -29,7 +30,9 @@ buildPythonPackage rec {
})
];

propagatedBuildInputs = [
build-system = [ setuptools ];

dependencies = [
beautifulsoup4
enum-compat
pyserial
Expand All @@ -44,6 +47,7 @@ buildPythonPackage rec {
];

meta = with lib; {
changelog = "https://github.com/kipe/enocean/releases/tag/${version}";
description = "EnOcean serial protocol implementation";
mainProgram = "enocean_example.py";
homepage = "https://github.com/kipe/enocean";
Expand Down

0 comments on commit b3f5f3f

Please sign in to comment.