python313Packages.flake8-import-order: fix license, refactor

Tom Hunze c402e11f f1330ea7

Changed files
+7 -10
pkgs
development
python-modules
flake8-import-order
+7 -10
pkgs/development/python-modules/flake8-import-order/default.nix
···
pycodestyle,
pylama,
pytestCheckHook,
-
pythonOlder,
+
setuptools,
}:
buildPythonPackage rec {
pname = "flake8-import-order";
version = "0.19.2";
-
format = "setuptools";
-
-
disabled = pythonOlder "3.7";
+
pyproject = true;
src = fetchPypi {
inherit version;
···
hash = "sha256-Ezs8VUl2MeQjUHT8mKlQeLuoF4MjefIqMfCtJFW8sLI=";
};
-
propagatedBuildInputs = [ pycodestyle ];
+
build-system = [ setuptools ];
+
+
dependencies = [ pycodestyle ];
nativeCheckInputs = [
flake8
···
pythonImportsCheck = [ "flake8_import_order" ];
-
meta = with lib; {
+
meta = {
description = "Flake8 and pylama plugin that checks the ordering of import statements";
homepage = "https://github.com/PyCQA/flake8-import-order";
changelog = "https://github.com/PyCQA/flake8-import-order/blob/${version}/CHANGELOG.rst";
-
license = with licenses; [
-
lgpl3
-
mit
-
];
+
license = lib.licenses.lgpl3Only;
maintainers = [ ];
};
}