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 = "6.0.1";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "jaraco";
18 repo = "configparser";
19 rev = "refs/tags/v${version}";
20 hash = "sha256-r+poK+knBQi48Z1VrNFqUt9Qm9iGERAOTFa4bKfXi0g=";
21 };
22
23 nativeBuildInputs = [
24 setuptools
25 setuptools-scm
26 ];
27
28 nativeCheckInputs = [ pytestCheckHook ];
29
30 preConfigure = ''
31 export LC_ALL=${if stdenv.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 = with maintainers; [ ];
39 };
40}