1{
2 lib,
3 stdenv,
4 buildPythonPackage,
5 fetchFromGitHub,
6 pytestCheckHook,
7 setuptools,
8 setuptools-scm,
9}:
10
11buildPythonPackage rec {
12 pname = "configparser";
13 version = "7.1.0";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "jaraco";
18 repo = "configparser";
19 rev = "refs/tags/v${version}";
20 hash = "sha256-6B1I/kS60opMDpCzy2tnlnV65Qo500G0zPHP1I5TDWA=";
21 };
22
23 nativeBuildInputs = [
24 setuptools
25 setuptools-scm
26 ];
27
28 nativeCheckInputs = [ pytestCheckHook ];
29
30 preConfigure = ''
31 export LC_ALL=${if stdenv.hostPlatform.isDarwin then "en_US" else "C"}.UTF-8
32 '';
33
34 meta = with lib; {
35 description = "Updated configparser from Python 3.7 for Python 2.6+";
36 homepage = "https://github.com/jaraco/configparser";
37 license = licenses.mit;
38 maintainers = [ ];
39 };
40}