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 b9e79fc commit 858b3d8
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 @@ -2,6 +2,7 @@
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
beautifulsoup4,
enum-compat,
pyserial,
Expand All @@ -11,18 +12,20 @@
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 = [ ./use-pytest.patch ];

propagatedBuildInputs = [
build-system = [ setuptools ];

dependencies = [
beautifulsoup4
enum-compat
pyserial
Expand All @@ -37,6 +40,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 858b3d8

Please sign in to comment.