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";