diff --git a/pkgs/development/python-modules/aspy-refactor-imports/default.nix b/pkgs/development/python-modules/aspy-refactor-imports/default.nix new file mode 100644 index 00000000000..9ec0cf55d42 --- /dev/null +++ b/pkgs/development/python-modules/aspy-refactor-imports/default.nix @@ -0,0 +1,34 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pytestCheckHook +, pythonOlder +}: + +buildPythonPackage rec { + pname = "aspy-refactor-imports"; + version = "3.0.1"; + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "asottile"; + repo = "aspy.refactor_imports"; + rev = "v${version}"; + sha256 = "MlCM3zNTQZJ1RWrTQG0AN28RUepWINKCeLENykbu2nw="; + }; + + pythonImportsCheck = [ + "aspy.refactor_imports" + ]; + + checkInputs = [ + pytestCheckHook + ]; + + meta = with lib; { + description = "Utilities for refactoring imports in python-like syntax."; + homepage = "https://github.com/asottile/reorder_python_imports"; + license = licenses.mit; + maintainers = with maintainers; [ gador ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 7d5ef6d894d..46b2200d5a2 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -664,6 +664,8 @@ in { aspell-python = callPackage ../development/python-modules/aspell-python { }; + aspy-refactor-imports = callPackage ../development/python-modules/aspy-refactor-imports { }; + aspy-yaml = callPackage ../development/python-modules/aspy.yaml { }; assertpy = callPackage ../development/python-modules/assertpy { };