python3Packages.canopen: limit to later Python releases

This commit is contained in:
Fabian Affolter 2022-02-13 13:07:35 +01:00 committed by Jonathan Ringer
parent a69e3a8fa9
commit 79953e76a0

View file

@ -5,15 +5,19 @@
, can , can
, canmatrix , canmatrix
, pytestCheckHook , pytestCheckHook
, pythonOlder
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "canopen"; pname = "canopen";
version = "2.0.0"; version = "2.0.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "sha256-vMiqnqg/etpdoNregQOJd75SqTgCwmV2SXKesfggZdk="; hash = "sha256-vMiqnqg/etpdoNregQOJd75SqTgCwmV2SXKesfggZdk=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@ -29,7 +33,9 @@ buildPythonPackage rec {
pytestCheckHook pytestCheckHook
]; ];
pythonImportsCheck = [ "canopen" ]; pythonImportsCheck = [
"canopen"
];
meta = with lib; { meta = with lib; {
homepage = "https://github.com/christiansandberg/canopen/"; homepage = "https://github.com/christiansandberg/canopen/";