pythonPackages.zfec: patch out argparse dependency

Since `argparse` stopped doing anything a while ago, we'll just patch it
out of setup.py and nobody will notice.
This commit is contained in:
Corbin 2019-01-07 17:12:07 -08:00 committed by Frederik Rietdijk
parent 6a942aec5b
commit 2c9de98dba

View File

@ -3,7 +3,6 @@
, fetchPypi
, setuptoolsDarcs
, pyutil
, argparse
, isPyPy
}:
@ -18,7 +17,12 @@ buildPythonPackage rec {
};
buildInputs = [ setuptoolsDarcs ];
propagatedBuildInputs = [ pyutil argparse ];
propagatedBuildInputs = [ pyutil ];
# argparse is in the stdlib but zfec doesn't know that.
postPatch = ''
sed -i -e '/argparse/d' setup.py
'';
meta = with stdenv.lib; {
homepage = http://allmydata.org/trac/zfec;