2024-03-08 01:39:34 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pytestCheckHook,
|
|
|
|
setuptools,
|
|
|
|
setuptools-scm,
|
|
|
|
}:
|
2018-03-31 18:08:32 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "configparser";
|
2024-09-29 16:04:04 +01:00
|
|
|
version = "7.1.0";
|
2024-03-08 01:39:34 +00:00
|
|
|
pyproject = true;
|
2018-03-31 18:08:32 +01:00
|
|
|
|
2024-03-08 01:39:34 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jaraco";
|
|
|
|
repo = "configparser";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-09-29 16:04:04 +01:00
|
|
|
hash = "sha256-6B1I/kS60opMDpCzy2tnlnV65Qo500G0zPHP1I5TDWA=";
|
2018-03-31 18:08:32 +01:00
|
|
|
};
|
|
|
|
|
2024-03-08 01:39:34 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
setuptools-scm
|
|
|
|
];
|
2019-10-24 07:47:28 +01:00
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2022-09-14 22:36:06 +01:00
|
|
|
|
2019-02-14 07:37:13 +00:00
|
|
|
preConfigure = ''
|
2019-02-22 17:31:36 +00:00
|
|
|
export LC_ALL=${if stdenv.hostPlatform.isDarwin then "en_US" else "C"}.UTF-8
|
2019-02-14 07:37:13 +00:00
|
|
|
'';
|
2018-03-31 18:08:32 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-02-14 07:37:13 +00:00
|
|
|
description = "Updated configparser from Python 3.7 for Python 2.6+";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/jaraco/configparser";
|
2022-09-14 22:36:06 +01:00
|
|
|
license = licenses.mit;
|
2024-07-28 15:44:11 +01:00
|
|
|
maintainers = [ ];
|
2018-03-31 18:08:32 +01:00
|
|
|
};
|
|
|
|
}
|