From 0305c482a9adbd18d02b53db437727c4e53fd8cc Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 5 Mar 2023 00:20:42 +0100 Subject: [PATCH] python310Packages.python-velbus: 2.1.4 -> 2.1.9 --- .../python-modules/python-velbus/default.nix | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/python-velbus/default.nix b/pkgs/development/python-modules/python-velbus/default.nix index c83ff853f1d5..c2357f2df32a 100644 --- a/pkgs/development/python-modules/python-velbus/default.nix +++ b/pkgs/development/python-modules/python-velbus/default.nix @@ -1,18 +1,20 @@ { lib , buildPythonPackage -, fetchFromGitHub +, fetchPypi , pyserial +, pythonOlder }: buildPythonPackage rec { pname = "python-velbus"; - version = "2.1.4"; + version = "2.1.9"; + format = "setuptools"; - src = fetchFromGitHub { - owner = "thomasdelaet"; - repo = pname; - rev = version; - sha256 = "1z0a7fc9xfrcpwi9xiimxsgbzbp2iwyi1rij6vqd5z47mzi49fv9"; + disabled = pythonOlder "3.7"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-SbuECT6851E+QNyyPaNTnKmH54fYovemSto8gvfMIKg="; }; propagatedBuildInputs = [ @@ -22,7 +24,9 @@ buildPythonPackage rec { # Project has not tests doCheck = false; - pythonImportsCheck = [ "velbus" ]; + pythonImportsCheck = [ + "velbus" + ]; meta = with lib; { description = "Python library to control the Velbus home automation system";