python3Packages.reorder-python-imports: init at 3.0.1
Signed-off-by: florian on nixos (Florian Brandes) <florian.brandes@posteo.de>
This commit is contained in:
parent
836171e89a
commit
c6a3e37228
2 changed files with 45 additions and 0 deletions
|
@ -0,0 +1,43 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, aspy-refactor-imports
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "reorder-python-imports";
|
||||
version = "3.0.1";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "asottile";
|
||||
repo = "reorder_python_imports";
|
||||
rev = "v${version}";
|
||||
sha256 = "1bdKM1sUhpZHy03DdoTzpt1iGm1t1nWnuPyTgl3KhCY=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ aspy-refactor-imports ];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"reorder_python_imports"
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
# prints an explanation about PYTHONPATH first
|
||||
# and therefore fails the assertion
|
||||
disabledTests = [
|
||||
"test_success_messages_are_printed_on_stderr"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Tool for automatically reordering python imports";
|
||||
homepage = "https://github.com/asottile/reorder_python_imports";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ gador ];
|
||||
};
|
||||
}
|
|
@ -8712,6 +8712,8 @@ in {
|
|||
|
||||
rencode = callPackage ../development/python-modules/rencode { };
|
||||
|
||||
reorder-python-imports = callPackage ../development/python-modules/reorder-python-imports { };
|
||||
|
||||
reolink = callPackage ../development/python-modules/reolink { };
|
||||
|
||||
reparser = callPackage ../development/python-modules/reparser { };
|
||||
|
|
Loading…
Reference in a new issue