autoflake: move to pythonPackages

It is imported by pydantic.
This commit is contained in:
Robert Schütz 2023-01-09 08:15:05 -08:00
parent 32a8d42f3d
commit 2b671e96a8
3 changed files with 11 additions and 6 deletions

View file

@ -1,21 +1,24 @@
{ lib { lib
, python3 , buildPythonPackage
, fetchPypi
, pyflakes
, pytestCheckHook
}: }:
python3.pkgs.buildPythonApplication rec { buildPythonPackage rec {
pname = "autoflake"; pname = "autoflake";
version = "1.4"; version = "1.4";
src = python3.pkgs.fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-YaNTASz/arlMoGKCPR+y9pLErNpRx2/4Oo13kV+6Ueo="; hash = "sha256-YaNTASz/arlMoGKCPR+y9pLErNpRx2/4Oo13kV+6Ueo=";
}; };
propagatedBuildInputs = with python3.pkgs; [ propagatedBuildInputs = [
pyflakes pyflakes
]; ];
checkInputs = with python3.pkgs; [ checkInputs = [
pytestCheckHook pytestCheckHook
]; ];

View file

@ -2644,7 +2644,7 @@ with pkgs;
authenticator = callPackage ../applications/misc/authenticator { }; authenticator = callPackage ../applications/misc/authenticator { };
autoflake = callPackage ../development/tools/analysis/autoflake { }; autoflake = with python3.pkgs; toPythonApplication autoflake;
autospotting = callPackage ../applications/misc/autospotting { }; autospotting = callPackage ../applications/misc/autospotting { };

View file

@ -780,6 +780,8 @@ self: super: with self; {
autofaiss = callPackage ../development/python-modules/autofaiss { }; autofaiss = callPackage ../development/python-modules/autofaiss { };
autoflake = callPackage ../development/python-modules/autoflake { };
autograd = callPackage ../development/python-modules/autograd { }; autograd = callPackage ../development/python-modules/autograd { };
autoit-ripper = callPackage ../development/python-modules/autoit-ripper { }; autoit-ripper = callPackage ../development/python-modules/autoit-ripper { };