pythonPackages.argparse: remove because argparse is part of stdlib in 2.7 and 3.2+

This commit is contained in:
Frederik Rietdijk 2017-06-01 18:00:57 +02:00
parent 9cee10973d
commit 49edb1138a

View file

@ -1287,36 +1287,8 @@ in {
};
argparse = buildPythonPackage (rec {
name = "argparse-1.4.0";
src = pkgs.fetchurl {
url = "mirror://pypi/a/argparse/${name}.tar.gz";
sha256 = "1r6nznp64j68ih1k537wms7h57nvppq0szmwsaf99n71bfjqkc32";
};
checkPhase = ''
export PYTHONPATH=`pwd`/build/lib:$PYTHONPATH
${python.interpreter} test/test_argparse.py
'';
# ordering issues in tests
doCheck = !isPy3k;
meta = {
homepage = http://code.google.com/p/argparse/;
license = licenses.asl20;
description = "argparse: Python command line parser";
longDescription = ''
The argparse module makes writing command line tools in Python
easy. Just briefly describe your command line interface and
argparse will take care of the rest, including: parsing the
arguments and flags from sys.argv, converting arg strings into
objects for your program, formatting and printing any help
messages, and much more.
'';
};
});
# argparse is part of stdlib in 2.7 and 3.2+
argparse = null;
astroid = callPackage ../development/python-modules/astroid { };