python313Packages.flake8-import-order: fix src, license (#442369)

Nick Cao 63556e78 c309732c

Changed files
+13 -14
pkgs
development
python-modules
flake8-import-order
+13 -14
pkgs/development/python-modules/flake8-import-order/default.nix
···
{
lib,
buildPythonPackage,
-
fetchPypi,
flake8,
pycodestyle,
pylama,
pytestCheckHook,
-
pythonOlder,
}:
buildPythonPackage rec {
pname = "flake8-import-order";
version = "0.19.2";
-
format = "setuptools";
-
disabled = pythonOlder "3.7";
-
src = fetchPypi {
-
inherit pname version;
-
hash = "sha256-Ezs8VUl2MeQjUHT8mKlQeLuoF4MjefIqMfCtJFW8sLI=";
-
};
-
propagatedBuildInputs = [ pycodestyle ];
nativeCheckInputs = [
flake8
···
pythonImportsCheck = [ "flake8_import_order" ];
-
meta = with lib; {
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
-
];
maintainers = [ ];
};
}
···
{
lib,
buildPythonPackage,
+
fetchFromGitHub,
flake8,
pycodestyle,
pylama,
pytestCheckHook,
+
setuptools,
}:
buildPythonPackage rec {
pname = "flake8-import-order";
version = "0.19.2";
+
pyproject = true;
+
src = fetchFromGitHub {
+
owner = "PyCQA";
+
repo = "flake8-import-order";
+
tag = version;
+
hash = "sha256-mXw3+pQMr2Ut1prj9sCZc4jyErDOyWJgq6OBPU1nZxs=";
+
};
+
build-system = [ setuptools ];
+
dependencies = [ pycodestyle ];
nativeCheckInputs = [
flake8
···
pythonImportsCheck = [ "flake8_import_order" ];
+
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 = lib.licenses.lgpl3Only;
maintainers = [ ];
};
}