2022-07-03 13:31:49 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "classify-imports";
|
2022-09-09 18:52:50 +00:00
|
|
|
version = "4.2.0";
|
2023-12-07 03:53:02 +00:00
|
|
|
format = "setuptools";
|
2022-07-03 13:31:49 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "asottile";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-09-09 18:52:50 +00:00
|
|
|
hash = "sha256-f5wZfisKz9WGdq6u0rd/zg2CfMwWvQeR8xZQNbD7KfU=";
|
2022-07-03 13:31:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "classify_imports" ];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2022-07-03 13:31:49 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|