depot/third_party/nixpkgs/pkgs/development/python-modules/configparser/default.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

40 lines
816 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.hostPlatform.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 = [ ];
};
}