nixpkgs/pkgs/development/python-modules/genzshcomp/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

26 lines
572 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, setuptools
}:
buildPythonPackage rec {
pname = "genzshcomp";
version = "0.6.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "b582910d36f9ad0992756d7e9ccbe3e5cf811934b1002b51f25b99d3dda9d573";
};
buildInputs = [ setuptools ];
meta = with lib; {
description = "Automatically generated zsh completion function for Python's option parser modules";
mainProgram = "genzshcomp";
homepage = "https://bitbucket.org/hhatto/genzshcomp/";
license = licenses.bsd0;
};
}