python311Packages.ciscoconfparse: modernize

This commit is contained in:
Peder Bergebakken Sundt 2024-08-12 03:59:24 +02:00
parent e42259283b
commit f4f419f03f

View File

@ -15,13 +15,13 @@
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=";
};
@ -35,16 +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
];
build-system = [ poetry-core ];
propagatedBuildInputs = [
dependencies = [
passlib
deprecat
dnspython