about summary refs log tree commit diff
path: root/pkgs/development/python-modules/ciscoconfparse/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/ciscoconfparse/default.nix')
-rw-r--r--pkgs/development/python-modules/ciscoconfparse/default.nix14
1 files changed, 5 insertions, 9 deletions
diff --git a/pkgs/development/python-modules/ciscoconfparse/default.nix b/pkgs/development/python-modules/ciscoconfparse/default.nix
index 991153a573aec..478591d51df3a 100644
--- a/pkgs/development/python-modules/ciscoconfparse/default.nix
+++ b/pkgs/development/python-modules/ciscoconfparse/default.nix
@@ -9,20 +9,19 @@
   poetry-core,
   pytestCheckHook,
   pythonOlder,
-  pythonRelaxDepsHook,
   toml,
 }:
 
 buildPythonPackage rec {
   pname = "ciscoconfparse";
   version = "1.7.24";
-  format = "pyproject";
+  pyproject = true;
 
   disabled = pythonOlder "3.7";
 
   src = fetchFromGitHub {
     owner = "mpenning";
-    repo = pname;
+    repo = "ciscoconfparse";
     rev = "refs/tags/${version}";
     hash = "sha256-vL/CQdYcOP356EyRToviWylP1EBtxmeov6qkhfQNZ2Y=";
   };
@@ -36,17 +35,14 @@ buildPythonPackage rec {
     sed -i '/requires-python/d' pyproject.toml
 
     substituteInPlace pyproject.toml \
-      --replace '"poetry>=1.3.2",' ""
+      --replace-fail '"poetry>=1.3.2",' ""
 
     patchShebangs tests
   '';
 
-  nativeBuildInputs = [
-    poetry-core
-    pythonRelaxDepsHook
-  ];
+  build-system = [ poetry-core ];
 
-  propagatedBuildInputs = [
+  dependencies = [
     passlib
     deprecat
     dnspython