mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-06 04:24:28 +03:00
python2.pkgs.configparser: keep at 4.0.2 for python 2
This commit is contained in:
parent
91e035056a
commit
9dfb5e4155
26
pkgs/development/python-modules/configparser/4.nix
Normal file
26
pkgs/development/python-modules/configparser/4.nix
Normal 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";
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user