From 048cd0429129c6d1df28f15a426edfc9c8099938 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Fri, 12 Apr 2024 07:34:24 +0000 Subject: [PATCH 1/3] python312Packages.junos-eznc: 2.7.0 -> 2.7.1 --- pkgs/development/python-modules/junos-eznc/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/junos-eznc/default.nix b/pkgs/development/python-modules/junos-eznc/default.nix index 35a8e38ec0f0..2be20dd623e5 100644 --- a/pkgs/development/python-modules/junos-eznc/default.nix +++ b/pkgs/development/python-modules/junos-eznc/default.nix @@ -23,7 +23,7 @@ buildPythonPackage rec { pname = "junos-eznc"; - version = "2.7.0"; + version = "2.7.1"; pyproject = true; disabled = pythonOlder "3.8"; @@ -32,7 +32,7 @@ buildPythonPackage rec { owner = "Juniper"; repo = "py-junos-eznc"; rev = "refs/tags/${version}"; - hash = "sha256-06OV6UrF2i4SxL5dCvVxsEX2e8ef8UBFx/oMbvCZDaM="; + hash = "sha256-aoi+in5A8qSdQNY3V4S4wBBfPchR1an7G6GQHDhgxpQ="; }; nativeBuildInputs = [ From 553c9184da1fa57aa6b46a61797067937ca75c8c Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 12 Apr 2024 10:41:03 +0200 Subject: [PATCH 2/3] python312Packages.junos-eznc: refactor --- pkgs/development/python-modules/junos-eznc/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/junos-eznc/default.nix b/pkgs/development/python-modules/junos-eznc/default.nix index 2be20dd623e5..e52d85bc5000 100644 --- a/pkgs/development/python-modules/junos-eznc/default.nix +++ b/pkgs/development/python-modules/junos-eznc/default.nix @@ -35,11 +35,11 @@ buildPythonPackage rec { hash = "sha256-aoi+in5A8qSdQNY3V4S4wBBfPchR1an7G6GQHDhgxpQ="; }; - nativeBuildInputs = [ + build-system = [ setuptools ]; - propagatedBuildInputs = [ + dependencies = [ jinja2 lxml ncclient From c057f8f2badd68e72142450120da7f6af386d816 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 12 Apr 2024 10:41:22 +0200 Subject: [PATCH 3/3] python312Packages.junos-eznc: format with nixfmt --- .../python-modules/junos-eznc/default.nix | 55 +++++++++---------- 1 file changed, 25 insertions(+), 30 deletions(-) diff --git a/pkgs/development/python-modules/junos-eznc/default.nix b/pkgs/development/python-modules/junos-eznc/default.nix index e52d85bc5000..55e34c9e30aa 100644 --- a/pkgs/development/python-modules/junos-eznc/default.nix +++ b/pkgs/development/python-modules/junos-eznc/default.nix @@ -1,24 +1,25 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, jinja2 -, lxml -, mock -, ncclient -, netaddr -, nose2 -, ntc-templates -, paramiko -, pyparsing -, pyserial -, pythonOlder -, pyyaml -, scp -, setuptools -, pytestCheckHook -, six -, transitions -, yamlordereddictloader +{ + lib, + buildPythonPackage, + fetchFromGitHub, + jinja2, + lxml, + mock, + ncclient, + netaddr, + nose2, + ntc-templates, + paramiko, + pyparsing, + pyserial, + pythonOlder, + pyyaml, + scp, + setuptools, + pytestCheckHook, + six, + transitions, + yamlordereddictloader, }: buildPythonPackage rec { @@ -35,9 +36,7 @@ buildPythonPackage rec { hash = "sha256-aoi+in5A8qSdQNY3V4S4wBBfPchR1an7G6GQHDhgxpQ="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ jinja2 @@ -61,9 +60,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pytestFlagsArray = [ - "tests/unit" - ]; + pytestFlagsArray = [ "tests/unit" ]; disabledTests = [ # jnpr.junos.exception.FactLoopError: A loop was detected while gathering the... @@ -76,9 +73,7 @@ buildPythonPackage rec { "test_domain_fact_from_config" ]; - pythonImportsCheck = [ - "jnpr.junos" - ]; + pythonImportsCheck = [ "jnpr.junos" ]; meta = with lib; { description = "Junos 'EZ' automation for non-programmers";