python3.pkgs.ciscoconfparse: fix build dependency metadata (#246905)

This commit is contained in:
Theodore Ni 2023-08-10 22:44:43 -07:00 committed by GitHub
parent 32c8912889
commit 9b128cb45c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,6 +31,14 @@ buildPythonPackage rec {
];
postPatch = ''
# The line below is in the [build-system] section, which is invalid and
# rejected by PyPA's build tool. It belongs in [project] but upstream has
# had problems with putting that there (see comment in pyproject.toml).
sed -i '/requires-python/d' pyproject.toml
substituteInPlace pyproject.toml \
--replace '"poetry>=1.3.2",' ""
patchShebangs tests
'';