python311Packages.pkg-about: remove unneeded tox dependancy; fix build

tox is listed as a build requirement but it is never used. however, it
is breaking the build due to a tox dependency, cachetools, failing a
version check. Updating cachetools causes over 600 rebuilds.

https://github.com/karpierz/pkg_about/blob/1.0.8/pyproject.toml
This commit is contained in:
annalee 2023-11-19 11:22:11 +00:00
parent 53aeb5c67b
commit 02850dd6b9
No known key found for this signature in database

View File

@ -7,7 +7,6 @@
, setuptools
, packaging
, tomli
, tox
}:
buildPythonPackage rec {
@ -24,10 +23,15 @@ buildPythonPackage rec {
hash = "sha256-mb43XbKypgilagXLW33kP8wXxioNsfLtl6AEnOI1WlA=";
};
# tox is listed in build requirements but not actually used to build
# keeping it as a requirement breaks the build unnecessarily
postPatch = ''
sed -i "/requires/s/, 'tox>=3.25.1'//" pyproject.toml
'';
nativeBuildInputs = [
packaging
setuptools
tox
];
propagatedBuildInputs = [