Merge pull request #268288 from fabaff/yamllint-bump

python311Packages.yamllint: 1.32.0 -> 1.33.0
This commit is contained in:
Fabian Affolter 2023-12-01 08:50:44 +01:00 committed by GitHub
commit 37e829b264
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 30 additions and 20 deletions

View File

@ -5,6 +5,7 @@
, netmiko
, pip
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
@ -12,32 +13,37 @@ buildPythonPackage rec {
version = "0.7.0";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "napalm-automation-community";
repo = pname;
rev = version;
repo = "napalm-hp-procurve";
rev = "refs/tags/${version}";
hash = "sha256-cO4kxI90krj1knzixRKWxa77OAaxjO8dLTy02VpkV9M=";
};
patchPhase = ''
# Dependency installation in setup.py doesn't work
echo -n > requirements.txt
substituteInPlace setup.cfg \
--replace "--cov=napalm_procurve --cov-report term-missing -vs --pylama" ""
'';
nativeBuildInputs = [
pip
];
# dependency installation in setup.py doesn't work
patchPhase = ''
echo -n > requirements.txt
'';
buildInputs = [
napalm
];
buildInputs = [ napalm ];
propagatedBuildInputs = [
netmiko
];
propagatedBuildInputs = [ netmiko ];
# setup.cfg seems to contain invalid pytest parameters
preCheck = ''
rm setup.cfg
'';
nativeCheckInputs = [ pytestCheckHook ];
nativeCheckInputs = [
pytestCheckHook
];
disabledTests = [
# AssertionError: Some methods vary.
@ -46,6 +52,11 @@ buildPythonPackage rec {
"test_get_config_filtered"
# AssertionError
"test_get_interfaces"
"test_get_facts"
];
pythonImportsCheck = [
"napalm_procurve"
];
meta = with lib; {

View File

@ -15,13 +15,13 @@
buildPythonPackage rec {
pname = "netutils";
version = "1.6.0";
format = "pyproject";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "networktocode";
repo = pname;
repo = "netutils";
rev = "refs/tags/v${version}";
hash = "sha256-ocajE7E4xIatEmv58/9gEpWF2plJdiZXjk6ajD2vTzw=";
};
@ -32,7 +32,6 @@ buildPythonPackage rec {
propagatedBuildInputs = [
jsonschema
napalm
];
passthru.optional-dependencies.optionals = [

View File

@ -11,7 +11,7 @@
buildPythonPackage rec {
pname = "yamllint";
version = "1.32.0";
version = "1.33.0";
format = "pyproject";
disabled = pythonOlder "3.7";
@ -20,7 +20,7 @@ buildPythonPackage rec {
owner = "adrienverge";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-DtIQ/gUBFQBm0OOJC2c/ONn2ZKsMAzdwMx7FbUo+uIU=";
hash = "sha256-hWN5PhEAhckp250Dj7h5PpyH/E1jCi38O4VmMYgPtzE=";
};
nativeBuildInputs = [