Files
nixpkgs/pkgs/development/python-modules/autopep8/default.nix
T
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

45 lines
990 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
glibcLocales,
pycodestyle,
pytestCheckHook,
pythonOlder,
setuptools,
tomli,
}:
buildPythonPackage rec {
pname = "autopep8";
version = "2.3.2";
pyproject = true;
src = fetchFromGitHub {
owner = "hhatto";
repo = "autopep8";
tag = "v${version}";
hash = "sha256-9OJ5XbzpHMHsFjf5oVyHjn5zqmAxRuSItWP4sQx8jD4=";
};
build-system = [ setuptools ];
propagatedBuildInputs = [ pycodestyle ] ++ lib.optionals (pythonOlder "3.11") [ tomli ];
nativeCheckInputs = [
glibcLocales
pytestCheckHook
];
env.LC_ALL = "en_US.UTF-8";
meta = {
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 = lib.licenses.mit;
mainProgram = "autopep8";
maintainers = with lib.maintainers; [ bjornfor ];
};
}