2021-12-06 16:07:01 +00:00
|
|
|
{ lib, buildPythonApplication, fetchPypi, installShellFiles }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "you-get";
|
2022-04-27 09:35:20 +00:00
|
|
|
version = "0.4.1602";
|
2020-04-24 23:36:52 +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;
|
2022-04-27 09:35:20 +00:00
|
|
|
sha256 = "sha256-RwbAbMS5CA6pO08TuaTb67YM/hLRkceOF7D6iV0XcI8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +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
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A tiny command line utility to download media contents from the web";
|
|
|
|
homepage = "https://you-get.org";
|
2021-12-06 16:07:01 +00:00
|
|
|
changelog = "https://github.com/soimort/you-get/raw/v${version}/CHANGELOG.rst";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ ryneeverett ];
|
|
|
|
};
|
|
|
|
}
|