blob: a08fdcb1dd2cf0a4220a6f23dca6e55642d7181d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
{ lib, buildPythonApplication, fetchPypi, installShellFiles }:
buildPythonApplication rec {
pname = "you-get";
version = "0.4.1555";
# 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;
sha256 = "99282aca720c7ee1d9ef4b63bbbd226e906ea170b789a459fafd5b0627b0b15f";
};
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; {
description = "A tiny command line utility to download media contents from the web";
homepage = "https://you-get.org";
changelog = "https://github.com/soimort/you-get/raw/v${version}/CHANGELOG.rst";
license = licenses.mit;
maintainers = with maintainers; [ ryneeverett ];
};
}
|