depot/third_party/nixpkgs/pkgs/development/python-modules/classify-imports/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

34 lines
702 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "classify-imports";
version = "4.2.0";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "asottile";
repo = pname;
rev = "v${version}";
hash = "sha256-f5wZfisKz9WGdq6u0rd/zg2CfMwWvQeR8xZQNbD7KfU=";
};
pythonImportsCheck = [
"classify_imports"
];
nativeCheckInputs = [
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 ];
};
}