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