depot/third_party/nixpkgs/pkgs/development/python-modules/argcomplete/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

43 lines
947 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, setuptools
, setuptools-scm
}:
buildPythonPackage rec {
pname = "argcomplete";
version = "3.3.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "kislyuk";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-ekTmT6jYkC36X2e0ukwHfDGwdPg3jK8jML2naBCgNI8=";
};
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 ];
};
}