depot/third_party/nixpkgs/pkgs/development/python-modules/configparser/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

40 lines
822 B
Nix

{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
setuptools,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "configparser";
version = "6.0.1";
pyproject = true;
src = fetchFromGitHub {
owner = "jaraco";
repo = "configparser";
rev = "refs/tags/v${version}";
hash = "sha256-r+poK+knBQi48Z1VrNFqUt9Qm9iGERAOTFa4bKfXi0g=";
};
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; [ ];
};
}