depot/third_party/nixpkgs/pkgs/development/python-modules/configparser/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

40 lines
821 B
Nix

{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
setuptools,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "configparser";
version = "7.0.0";
pyproject = true;
src = fetchFromGitHub {
owner = "jaraco";
repo = "configparser";
rev = "refs/tags/v${version}";
hash = "sha256-OqlmAmBt4x+cJtK89dxsU7+Vn9wmGR9Djc59/ewHSxs=";
};
nativeBuildInputs = [
setuptools
setuptools-scm
];
nativeCheckInputs = [ pytestCheckHook ];
preConfigure = ''
export LC_ALL=${if stdenv.isDarwin then "en_US" else "C"}.UTF-8
'';
meta = with lib; {
description = "Updated configparser from Python 3.7 for Python 2.6+";
homepage = "https://github.com/jaraco/configparser";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}