nixpkgs/pkgs/tools/misc/you-get/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
998 B
Nix
Raw Normal View History

2021-11-15 15:30:00 +00:00
{ lib, buildPythonApplication, fetchPypi, installShellFiles }:
2018-01-26 03:05:32 +00:00
buildPythonApplication rec {
pname = "you-get";
2021-11-15 15:29:33 +00:00
version = "0.4.1555";
2018-01-26 03:05:32 +00:00
# Tests aren't packaged, but they all hit the real network so
# probably aren't suitable for a build environment anyway.
doCheck = false;
src = fetchPypi {
inherit pname version;
2021-11-15 15:29:33 +00:00
sha256 = "99282aca720c7ee1d9ef4b63bbbd226e906ea170b789a459fafd5b0627b0b15f";
2018-01-26 03:05:32 +00:00
};
2021-11-15 15:30:00 +00:00
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
installShellCompletion --cmd you-get \
--zsh contrib/completion/_you-get \
--fish contrib/completion/you-get.fish \
--bash contrib/completion/you-get-completion.bash
'';
meta = with lib; {
2018-01-26 03:05:32 +00:00
description = "A tiny command line utility to download media contents from the web";
2020-03-10 02:57:43 +00:00
homepage = "https://you-get.org";
2021-11-15 15:30:00 +00:00
changelog = "https://github.com/soimort/you-get/raw/v${version}/CHANGELOG.rst";
2018-01-26 03:05:32 +00:00
license = licenses.mit;
maintainers = with maintainers; [ ryneeverett ];
};
}