diff --git a/pkgs/development/python-modules/classify-imports/default.nix b/pkgs/development/python-modules/classify-imports/default.nix new file mode 100644 index 000000000000..3e0245ab58d1 --- /dev/null +++ b/pkgs/development/python-modules/classify-imports/default.nix @@ -0,0 +1,34 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pytestCheckHook +, pythonOlder +}: + +buildPythonPackage rec { + pname = "classify-imports"; + version = "4.1.0"; + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "asottile"; + repo = pname; + rev = "v${version}"; + hash = "sha256-w/+Sf2ZVSDmFNPICJfAKzfukcznWyFBhi7hjIELtYGI="; + }; + + pythonImportsCheck = [ + "classify_imports" + ]; + + checkInputs = [ + pytestCheckHook + ]; + + meta = with lib; { + description = "Utilities for refactoring imports in python-like syntax"; + homepage = "https://github.com/asottile/classify-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 f7c6532b67c3..7d8978e03933 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1706,6 +1706,8 @@ in { claripy = callPackage ../development/python-modules/claripy { }; + classify-imports = callPackage ../development/python-modules/classify-imports { }; + cld2-cffi = callPackage ../development/python-modules/cld2-cffi { }; cle = callPackage ../development/python-modules/cle { };