-
-
Notifications
You must be signed in to change notification settings - Fork 15.4k
pythonPackages.autoflake: init at 1.0 #31879
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -0,0 +1,20 @@ | |||
{ stdenv, buildPythonPackage, fetchPypi, pyflakes }: | |||
|
|||
buildPythonPackage rec { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This does not look a library to me. If so, can you use buildPythonApplication
and move it to all-packages.nix
?
pkgs/top-level/python-packages.nix
Outdated
@@ -661,6 +661,8 @@ in { | |||
}; | |||
}; | |||
|
|||
autoflake = callPackage ../development/python-modules/autoflake { }; | |||
|
|||
autopep8 = callPackage ../development/python-modules/autopep8 { }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
autopep8
might be also a candidate... but this does not need to be done in this pr.
3bd0c96
to
afaffc1
Compare
@Mic92 Thank you very much for the suggestions, I agree that this (and perhaps also Anyways, I've updated the pr and made it a Python3 app. |
pkgs/top-level/all-packages.nix
Outdated
@@ -511,6 +511,8 @@ with pkgs; | |||
python3Packages = python34Packages; | |||
}; | |||
|
|||
autoflake = callPackage ../development/python-modules/autoflake { }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe:
pkgs/development/tools/analysis/
as a directory?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, I'll do that, thanks!
Or, maybe can I dig pkgs/development/tools/python/
and use the directory?
Langs like guile
, haskell
, ocaml
, java
, .. seem to be doing that.
go
is a notable exception and spreads goimports
, gotags
etc right under developement/tools
.
afaffc1
to
26715fe
Compare
Thanks! |
Motivation for this change
autoflake
( https://pypi.python.org/pypi/autoflake ) is a tool that automatically removes unused imports and unused variables from Python code.Primarily, it is a standalone tool, but we put it under
python-modules
following the way how the similar packagepythonPackages.autopep8
is packaged.Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)