diff --git a/pkgs/development/python-modules/flake8-import-order/default.nix b/pkgs/development/python-modules/flake8-import-order/default.nix index 9dd465ada993..b64afe82c6b7 100644 --- a/pkgs/development/python-modules/flake8-import-order/default.nix +++ b/pkgs/development/python-modules/flake8-import-order/default.nix @@ -1,27 +1,29 @@ { lib, buildPythonPackage, - fetchPypi, + fetchFromGitHub, flake8, pycodestyle, pylama, pytestCheckHook, - pythonOlder, + setuptools, }: buildPythonPackage rec { pname = "flake8-import-order"; version = "0.19.2"; - format = "setuptools"; + pyproject = true; - disabled = pythonOlder "3.7"; - - src = fetchPypi { - inherit pname version; - hash = "sha256-Ezs8VUl2MeQjUHT8mKlQeLuoF4MjefIqMfCtJFW8sLI="; + src = fetchFromGitHub { + owner = "PyCQA"; + repo = "flake8-import-order"; + tag = version; + hash = "sha256-mXw3+pQMr2Ut1prj9sCZc4jyErDOyWJgq6OBPU1nZxs="; }; - propagatedBuildInputs = [ pycodestyle ]; + build-system = [ setuptools ]; + + dependencies = [ pycodestyle ]; nativeCheckInputs = [ flake8 @@ -32,14 +34,11 @@ buildPythonPackage rec { 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 = [ ]; }; }