python3Packages.pyeapi: does not support Python 3.10

This commit is contained in:
Robert Schütz 2022-02-24 19:39:12 +00:00
parent 1f414bd194
commit 9fe6e0e468

View File

@ -1,11 +1,20 @@
{ lib, buildPythonPackage, fetchFromGitHub, netaddr, pytestCheckHook, coverage
, mock }:
{ lib
, buildPythonPackage
, pythonAtLeast
, fetchFromGitHub
, netaddr
, pytestCheckHook
, mock
}:
buildPythonPackage rec {
pname = "pyeapi";
version = "0.8.4";
format = "pyproject";
# https://github.com/arista-eosplus/pyeapi/issues/189
disabled = pythonAtLeast "3.10";
src = fetchFromGitHub {
owner = "arista-eosplus";
repo = pname;
@ -15,10 +24,14 @@ buildPythonPackage rec {
propagatedBuildInputs = [ netaddr ];
checkInputs = [ coverage mock ];
checkPhase = ''
make unittest
'';
checkInputs = [
mock
pytestCheckHook
];
pytestFlagsArray = [ "test/unit" ];
pythonImportsCheck = [ "pyeapi" ];
meta = with lib; {
description = "Client for Arista eAPI";