summary refs log tree commit diff
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2021-03-13 01:45:18 +0100
committerGitHub <noreply@github.com>2021-03-13 01:45:18 +0100
commitb3ea24a4144884ab07ed4b8c48fddf4a292f1417 (patch)
tree967b88589b58b4ab626ad00177089775d8c95dfd
parentd70c7d2388f830f2d2411423a06ea75d15b6b294 (diff)
parentbbd64139f6a24f8450bb1fc19c486c4a86cf238d (diff)
downloadnixpkgs-b3ea24a4144884ab07ed4b8c48fddf4a292f1417.tar
nixpkgs-b3ea24a4144884ab07ed4b8c48fddf4a292f1417.tar.gz
nixpkgs-b3ea24a4144884ab07ed4b8c48fddf4a292f1417.tar.bz2
nixpkgs-b3ea24a4144884ab07ed4b8c48fddf4a292f1417.tar.lz
nixpkgs-b3ea24a4144884ab07ed4b8c48fddf4a292f1417.tar.xz
nixpkgs-b3ea24a4144884ab07ed4b8c48fddf4a292f1417.tar.zst
nixpkgs-b3ea24a4144884ab07ed4b8c48fddf4a292f1417.zip
Merge pull request #116093 from mweinelt/python/ntc-templates
python3Packages.ntc-templates: 1.6.0 -> 2.0.0
-rw-r--r--pkgs/development/python-modules/ntc-templates/default.nix27
1 files changed, 21 insertions, 6 deletions
diff --git a/pkgs/development/python-modules/ntc-templates/default.nix b/pkgs/development/python-modules/ntc-templates/default.nix
index a85bd0f8fc3..dc7ba5d8b68 100644
--- a/pkgs/development/python-modules/ntc-templates/default.nix
+++ b/pkgs/development/python-modules/ntc-templates/default.nix
@@ -2,6 +2,7 @@
 , buildPythonPackage
 , fetchFromGitHub
 , isPy27
+, poetry-core
 , textfsm
 , pytestCheckHook
 , ruamel_yaml
@@ -10,22 +11,36 @@
 
 buildPythonPackage rec {
   pname = "ntc-templates";
-  version = "1.6.0";
+  version = "2.0.0";
+  format = "pyproject";
   disabled = isPy27;
 
   src = fetchFromGitHub {
     owner = "networktocode";
     repo = pname;
-    rev = "dc27599b0c5f3bb6ff23049e781b5dab2849c2c3";  # not tagged
-    sha256 = "1vg5y5c51vc9dj3b8qcffh6dz85ri11zb1azxmyvgbq86pcvbx9f";
+    rev = "v${version}";
+    sha256 = "05ifbzps9jxrrkrqybsdbm67jhynfcjc298pqkhp21q5jwnlrl72";
   };
 
-  propagatedBuildInputs = [ textfsm ];
+  nativeBuildInputs = [
+    poetry-core
+  ];
 
-  checkInputs = [ pytestCheckHook ruamel_yaml yamllint ];
+  propagatedBuildInputs = [
+    textfsm
+  ];
+
+  checkInputs = [
+    pytestCheckHook
+    ruamel_yaml
+    yamllint
+  ];
 
   # https://github.com/networktocode/ntc-templates/issues/743
-  disabledTests = [ "test_raw_data_against_mock" "test_verify_parsed_and_reference_data_exists" ];
+  disabledTests = [
+    "test_raw_data_against_mock"
+    "test_verify_parsed_and_reference_data_exists"
+  ];
 
   meta = with lib; {
     description = "TextFSM templates for parsing show commands of network devices";