Unverified Commit 5de9a3bd authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

Merge pull request #289764 from fabaff/prospector-bump

python311Packages.requirements-detector: relax astroid, python311Packages.pylint-plugin-utils: enable tests
parents b9af52a4 1431b7a4
Loading
Loading
Loading
Loading
+26 −13
Original line number Diff line number Diff line
{ buildPythonPackage
{ lib
, astroid
, buildPythonPackage
, fetchPypi
, isPy3k
, lib

# pythonPackages
, pylint
, pylint-plugin-utils
, pythonOlder
, setuptools
}:

buildPythonPackage rec {
  pname = "pylint-flask";
  version = "0.6";
  format = "setuptools";
  disabled = !isPy3k;
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    inherit pname version;
    sha256 = "05qmwgkpvaa5k05abqjxfbrfk3wpdqb8ph690z7bzxvb47i7vngl";
    hash = "sha256-9Nl94iFr97/OB8nAixZul4/p8nJd4qUKmEWpfefjFRc=";
  };

  nativeBuildInputs = [
    setuptools
  ];

  buildInputs = [
    pylint
  ];

  propagatedBuildInputs = [
    astroid
    pylint-plugin-utils
  ];

@@ -26,12 +37,14 @@ buildPythonPackage rec {
  # also tests are only available at GitHub, with an old release tag
  doCheck = false;

  pythonImportsCheck = [
    "pylint_flask"
  ];

  meta = with lib; {
    description = "A Pylint plugin to analyze Flask applications";
    homepage = "https://github.com/jschaf/pylint-flask";
    license = licenses.gpl2;
    maintainers = with maintainers; [
      kamadorueda
    ];
    license = licenses.gpl2Only;
    maintainers = with maintainers; [ kamadorueda ];
  };
}
+0 −3
Original line number Diff line number Diff line
@@ -39,9 +39,6 @@ buildPythonPackage rec {
    "pylint_plugin_utils"
  ];

  # https://github.com/PyCQA/pylint-plugin-utils/issues/26
  doCheck = false;

  meta = with lib; {
    description = "Utilities and helpers for writing Pylint plugins";
    homepage = "https://github.com/PyCQA/pylint-plugin-utils";
+8 −2
Original line number Diff line number Diff line
@@ -7,25 +7,31 @@
, semver
, pytestCheckHook
, pythonOlder
, pythonRelaxDepsHook
, toml
}:

buildPythonPackage rec {
  pname = "requirements-detector";
  version = "1.2.2";
  format = "pyproject";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "landscapeio";
    repo = pname;
    repo = "requirements-detector";
    rev = "refs/tags/${version}";
    hash = "sha256-qmrHFQRypBJOI1N6W/Dtc5ss9JGqoPhFlbqrLHcb6vc=";
  };

  pythonRelaxDeps = [
    "astroid"
  ];

  nativeBuildInputs = [
    poetry-core
    pythonRelaxDepsHook
  ];

  propagatedBuildInputs = [