Fabian Affolter 2023-06-10 22:32:10 +02:00
parent e103448ce7
commit 2da59ab0b0

View file

@ -1,25 +1,25 @@
{ lib { lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, aiohttp , aiohttp
, siobrultech-protocols , buildPythonPackage
, fetchFromGitHub
, pytestCheckHook , pytestCheckHook
, pythonOlder
, siobrultech-protocols
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "greeneye-monitor"; pname = "greeneye-monitor";
version = "3.0.3"; version = "4.0";
disabled = pythonOlder "3.5"; disabled = pythonOlder "3.10";
format = "setuptools"; format = "setuptools";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "jkeljo"; owner = "jkeljo";
repo = "greeneye-monitor"; repo = "greeneye-monitor";
rev = "v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-weZTOVFBlB6TxFs8pLWfyB7WD/bn3ljBjX2tVi1Zc/I="; hash = "sha256-kMyFerb6T5316cr4T5hSo4HcpO5Hl5l+bMor5jon9yY=";
}; };
postPatch = '' postPatch = ''
@ -36,12 +36,15 @@ buildPythonPackage rec {
pytestCheckHook pytestCheckHook
]; ];
pythonImportsCheck = [ "greeneye.monitor" ]; pythonImportsCheck = [
"greeneye.monitor"
];
meta = { meta = with lib; {
description = "Receive data packets from GreenEye Monitor"; description = "Receive data packets from GreenEye Monitor";
homepage = "https://github.com/jkeljo/greeneye-monitor"; homepage = "https://github.com/jkeljo/greeneye-monitor";
license = lib.licenses.mit; changelog = "https://github.com/jkeljo/greeneye-monitor/blob/v${version}/CHANGELOG.rst";
maintainers = with lib.maintainers; [ dotlambda ]; license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
}; };
} }