python2.pkgs.configparser: keep at 4.0.2 for python 2

This commit is contained in:
Frederik Rietdijk 2020-06-07 10:02:16 +02:00
parent 91e035056a
commit 9dfb5e4155
2 changed files with 30 additions and 1 deletions

View File

@ -0,0 +1,26 @@
{ stdenv, buildPythonPackage, fetchPypi, setuptools_scm }:
buildPythonPackage rec {
pname = "configparser";
version = "4.0.2";
src = fetchPypi {
inherit pname version;
sha256 = "c7d282687a5308319bf3d2e7706e575c635b0a470342641c93bea0ea3b5331df";
};
# No tests available
doCheck = false;
nativeBuildInputs = [ setuptools_scm ];
preConfigure = ''
export LC_ALL=${if stdenv.isDarwin then "en_US" else "C"}.UTF-8
'';
meta = with stdenv.lib; {
description = "Updated configparser from Python 3.7 for Python 2.6+.";
license = licenses.mit;
homepage = "https://github.com/jaraco/configparser";
};
}

View File

@ -2278,7 +2278,10 @@ in {
colander = callPackage ../development/python-modules/colander { };
# Backported version of the ConfigParser library of Python 3.3
configparser = callPackage ../development/python-modules/configparser { };
configparser = if pythonOlder "3.6" then
callPackage ../development/python-modules/configparser/4.nix { }
else
callPackage ../development/python-modules/configparser { };
ColanderAlchemy = callPackage ../development/python-modules/colanderalchemy { };