Unverified Commit 63556e78 authored by Nick Cao's avatar Nick Cao Committed by GitHub
Browse files

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

parents c309732c 9b7b2906
Loading
Loading
Loading
Loading
+13 −14
Original line number Diff line number Diff line
{
  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 = [ ];
  };
}