1{ lib, stdenv, buildPythonPackage, fetchPypi, setuptools-scm }:
2
3buildPythonPackage rec {
4 pname = "configparser";
5 version = "4.0.2";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "c7d282687a5308319bf3d2e7706e575c635b0a470342641c93bea0ea3b5331df";
10 };
11
12 # No tests available
13 doCheck = false;
14
15 nativeBuildInputs = [ setuptools-scm ];
16
17 preConfigure = ''
18 export LC_ALL=${if stdenv.isDarwin then "en_US" else "C"}.UTF-8
19 '';
20
21 meta = with lib; {
22 description = "Updated configparser from Python 3.7 for Python 2.6+.";
23 license = licenses.mit;
24 homepage = "https://github.com/jaraco/configparser";
25 };
26}