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

46 lines
1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
glibcLocales,
pycodestyle,
pytestCheckHook,
pythonOlder,
setuptools,
tomli,
}:
buildPythonPackage rec {
pname = "autopep8";
version = "2.0.4-unstable-2023-10-27";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "hhatto";
repo = "autopep8";
rev = "af7399d90926f2fe99a71f15197a08fa197f73a1";
hash = "sha256-psGl9rXxTQGHyXf1VskJ/I/goVH5hRRP5bUXQdaT/8M=";
};
build-system = [ setuptools ];
propagatedBuildInputs = [ pycodestyle ] ++ lib.optionals (pythonOlder "3.11") [ tomli ];
nativeCheckInputs = [
glibcLocales
pytestCheckHook
];
env.LC_ALL = "en_US.UTF-8";
meta = with lib; {
changelog = "https://github.com/hhatto/autopep8/releases/tag/v${version}";
description = "Tool that automatically formats Python code to conform to the PEP 8 style guide";
homepage = "https://github.com/hhatto/autopep8";
license = licenses.mit;
mainProgram = "autopep8";
maintainers = with maintainers; [ bjornfor ];
};
}