Merge pull request #301321 from fabaff/netutils-bump
python312Packages.netutils: 1.7.0 -> 1.8.0
This commit is contained in:
commit
d9b45d7e72
@ -1,20 +1,21 @@
|
|||||||
{ lib
|
{
|
||||||
, stdenv
|
lib,
|
||||||
, buildPythonPackage
|
stdenv,
|
||||||
, fetchFromGitHub
|
buildPythonPackage,
|
||||||
, jinja2
|
fetchFromGitHub,
|
||||||
, jsonschema
|
jinja2,
|
||||||
, napalm
|
jsonschema,
|
||||||
, poetry-core
|
napalm,
|
||||||
, pytestCheckHook
|
poetry-core,
|
||||||
, pythonOlder
|
pytestCheckHook,
|
||||||
, pyyaml
|
pythonOlder,
|
||||||
, toml
|
pyyaml,
|
||||||
|
toml,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "netutils";
|
pname = "netutils";
|
||||||
version = "1.7.0";
|
version = "1.8.0";
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.8";
|
disabled = pythonOlder "3.8";
|
||||||
@ -23,16 +24,12 @@ buildPythonPackage rec {
|
|||||||
owner = "networktocode";
|
owner = "networktocode";
|
||||||
repo = "netutils";
|
repo = "netutils";
|
||||||
rev = "refs/tags/v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
hash = "sha256-B2epTqG0PzcD876Bk222nDSorHHB8Znepp+cgl1++gY=";
|
hash = "sha256-Eqs/YkU2XrjD7x2WgvvR89/Pdi9AW9vhw3alJ8kIDgc=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
build-system = [ poetry-core ];
|
||||||
poetry-core
|
|
||||||
];
|
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
dependencies = [ jsonschema ];
|
||||||
jsonschema
|
|
||||||
];
|
|
||||||
|
|
||||||
passthru.optional-dependencies.optionals = [
|
passthru.optional-dependencies.optionals = [
|
||||||
jsonschema
|
jsonschema
|
||||||
@ -46,9 +43,7 @@ buildPythonPackage rec {
|
|||||||
toml
|
toml
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [ "netutils" ];
|
||||||
"netutils"
|
|
||||||
];
|
|
||||||
|
|
||||||
disabledTests = [
|
disabledTests = [
|
||||||
# Tests require network access
|
# Tests require network access
|
||||||
|
@ -1,51 +1,55 @@
|
|||||||
{ lib
|
{
|
||||||
, buildPythonPackage
|
lib,
|
||||||
, fetchFromGitHub
|
buildPythonPackage,
|
||||||
, setuptools
|
fetchFromGitHub,
|
||||||
, mock
|
fetchpatch,
|
||||||
, netaddr
|
setuptools,
|
||||||
, pytestCheckHook
|
mock,
|
||||||
, pythonOlder
|
netaddr,
|
||||||
|
pytestCheckHook,
|
||||||
|
pythonOlder,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pyeapi";
|
pname = "pyeapi";
|
||||||
version = "1.0.2";
|
version = "1.0.2";
|
||||||
format = "pyproject";
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "arista-eosplus";
|
owner = "arista-eosplus";
|
||||||
repo = pname;
|
repo = "pyeapi";
|
||||||
rev = "refs/tags/v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
sha256 = "sha256-GZBoCoAqij54rZezRDF/ihJDQ5T6FFyDSRXGV3//avQ=";
|
hash = "sha256-GZBoCoAqij54rZezRDF/ihJDQ5T6FFyDSRXGV3//avQ=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
patches = [
|
||||||
setuptools
|
# Replace imp, https://github.com/arista-eosplus/pyeapi/pull/295
|
||||||
|
(fetchpatch {
|
||||||
|
name = "replace-imp.patch";
|
||||||
|
url = "https://github.com/arista-eosplus/pyeapi/commit/1f2d8e1fa61566082ccb11a1a17e0f3d8a0c89df.patch";
|
||||||
|
hash = "sha256-ONviRU6eUUZ+TTJ4F41ZXqavW7RIi1MBO7s7OsnWknk=";
|
||||||
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
build-system = [ setuptools ];
|
||||||
netaddr
|
|
||||||
];
|
dependencies = [ netaddr ];
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
mock
|
mock
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
pytestFlagsArray = [
|
pytestFlagsArray = [ "test/unit" ];
|
||||||
"test/unit"
|
|
||||||
];
|
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [ "pyeapi" ];
|
||||||
"pyeapi"
|
|
||||||
];
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Client for Arista eAPI";
|
description = "Client for Arista eAPI";
|
||||||
homepage = "https://github.com/arista-eosplus/pyeapi";
|
homepage = "https://github.com/arista-eosplus/pyeapi";
|
||||||
|
changelog = "https://github.com/arista-eosplus/pyeapi/releases/tag/v${version}";
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
maintainers = with maintainers; [ astro ];
|
maintainers = with maintainers; [ astro ];
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user