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