depot/third_party/nixpkgs/pkgs/development/python-modules/argcomplete/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

43 lines
947 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, setuptools
, setuptools-scm
}:
buildPythonPackage rec {
pname = "argcomplete";
version = "3.1.6";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "kislyuk";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-Akwa6dsf8w/Sw0ydUrqKEP5+dzHYX4hS8vcl7Gw4ePc=";
};
nativeBuildInputs = [
setuptools
setuptools-scm
];
# Tries to build and install test packages which fails
doCheck = false;
pythonImportsCheck = [
"argcomplete"
];
meta = with lib; {
changelog = "https://github.com/kislyuk/argcomplete/blob/v${version}/Changes.rst";
description = "Bash tab completion for argparse";
downloadPage = "https://github.com/kislyuk/argcomplete";
homepage = "https://kislyuk.github.io/argcomplete/";
license = licenses.asl20;
maintainers = with maintainers; [ womfoo ];
};
}