nixpkgs/pkgs/tools/networking/pirate-get/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

24 lines
621 B
Nix

{ lib, python3Packages, fetchPypi }:
with python3Packages;
buildPythonApplication rec {
pname = "pirate-get";
version = "0.4.2";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-VtnVyJqrdGXTqcyzpHCOMUI9G7/BkXzihDrBrsxl7Eg=";
};
propagatedBuildInputs = [ colorama veryprettytable pyperclip ];
meta = with lib; {
description = "A command line interface for The Pirate Bay";
mainProgram = "pirate-get";
homepage = "https://github.com/vikstrous/pirate-get";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ rnhmjoj ];
platforms = platforms.unix;
};
}