From 79953e76a02233bd5c723e91eec29fe108fe86f3 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 13 Feb 2022 13:07:35 +0100 Subject: [PATCH] python3Packages.canopen: limit to later Python releases --- pkgs/development/python-modules/canopen/default.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/canopen/default.nix b/pkgs/development/python-modules/canopen/default.nix index efa67780a9e6..ccb3626e2f48 100644 --- a/pkgs/development/python-modules/canopen/default.nix +++ b/pkgs/development/python-modules/canopen/default.nix @@ -5,15 +5,19 @@ , can , canmatrix , pytestCheckHook +, pythonOlder }: buildPythonPackage rec { pname = "canopen"; version = "2.0.0"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "sha256-vMiqnqg/etpdoNregQOJd75SqTgCwmV2SXKesfggZdk="; + hash = "sha256-vMiqnqg/etpdoNregQOJd75SqTgCwmV2SXKesfggZdk="; }; nativeBuildInputs = [ @@ -29,7 +33,9 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ "canopen" ]; + pythonImportsCheck = [ + "canopen" + ]; meta = with lib; { homepage = "https://github.com/christiansandberg/canopen/";