mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-21 21:09:00 +02:00
python3Packages.pyeapi: does not support Python 3.10
This commit is contained in:
parent
1f414bd194
commit
9fe6e0e468
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue