mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 19:45:54 +00:00
ced21f5e1a
The `buildPython*` function computes name from `pname` and `version`. This change removes `name` attribute from all expressions in `pkgs/development/python-modules`. While at it, some other minor changes were made as well, such as replacing `fetchurl` calls with `fetchPypi`.
27 lines
781 B
Nix
27 lines
781 B
Nix
{ buildPythonPackage, fetchPypi, lib,
|
|
coverage, dicttoxml, flake8, pexpect, prettytable, requests_toolbelt
|
|
}:
|
|
buildPythonPackage rec {
|
|
pname = "argcomplete";
|
|
version = "1.9.4";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "06c8a54ffaa6bfc9006314498742ec8843601206a3b94212f82657673662ecf1";
|
|
};
|
|
|
|
doCheck = false; # bash-completion test fails with "compgen: command not found".
|
|
|
|
# re-enable if we are able to make testing work
|
|
# buildInputs = [ coverage flake8 ];
|
|
|
|
propagatedBuildInputs = [ dicttoxml pexpect prettytable requests_toolbelt ];
|
|
|
|
meta = with lib; {
|
|
description = "Bash tab completion for argparse";
|
|
homepage = https://argcomplete.readthedocs.io;
|
|
maintainers = [ maintainers.womfoo ];
|
|
license = [ licenses.asl20 ];
|
|
};
|
|
}
|