depot/third_party/nixpkgs/pkgs/development/python-modules/autopep8/default.nix
Default email 0d9fc34957 Project import generated by Copybara.
GitOrigin-RevId: 5ed481943351e9fd354aeb557679624224de38d5
2023-01-20 11:41:00 +01:00

43 lines
911 B
Nix

{ lib
, fetchFromGitHub
, fetchpatch
, buildPythonPackage
, pythonOlder
, pycodestyle
, glibcLocales
, tomli
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "autopep8";
version = "2.0.1";
src = fetchFromGitHub {
owner = "hhatto";
repo = "autopep8";
rev = "refs/tags/v${version}";
hash = "sha256-YEPSsUzJG4MPiiloVAf9m/UiChkhkN0+lK6spycpSvo=";
};
propagatedBuildInputs = [
pycodestyle
] ++ lib.optionals (pythonOlder "3.11") [
tomli
];
checkInputs = [
glibcLocales
pytestCheckHook
];
LC_ALL = "en_US.UTF-8";
meta = with lib; {
changelog = "https://github.com/hhatto/autopep8/releases/tag/v${version}";
description = "A tool that automatically formats Python code to conform to the PEP 8 style guide";
homepage = "https://github.com/hhatto/autopep8";
license = licenses.mit;
maintainers = with maintainers; [ bjornfor ];
};
}