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

Merge pull request #221123 from fabaff/argcomplete-meta

python310Packages.argcomplete: add changelog to meta
parents fb40b5ff d9925fde
Loading
Loading
Loading
Loading
+16 −9
Original line number Diff line number Diff line
{ buildPythonPackage
{ lib
, buildPythonPackage
, fetchPypi
, lib
, pexpect
, pythonOlder
}:

buildPythonPackage rec {
  pname = "argcomplete";
  version = "2.1.1";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    inherit pname version;
    sha256 = "sha256-cuCDQIUtMlREWcDBmq0bSKosOpbejG5XQkVrT1OMpS8=";
    hash = "sha256-cuCDQIUtMlREWcDBmq0bSKosOpbejG5XQkVrT1OMpS8=";
  };

  postPatch = ''
@@ -19,19 +23,22 @@ buildPythonPackage rec {
      --replace " + lint_require" ""
  '';

  # tries to build and install test packages which fails
  doCheck = false;

  propagatedBuildInputs = [
    pexpect
  ];

  pythonImportsCheck = [ "argcomplete" ];
  # tries to build and install test packages which fails
  doCheck = false;

  pythonImportsCheck = [
    "argcomplete"
  ];

  meta = with lib; {
    description = "Bash tab completion for argparse";
    homepage = "https://kislyuk.github.io/argcomplete/";
    maintainers = [ maintainers.womfoo ];
    license = [ licenses.asl20 ];
    changelog = "https://github.com/kislyuk/argcomplete/blob/v${version}/Changes.rst";
    license = licenses.asl20;
    maintainers = with maintainers; [ womfoo ];
  };
}