depot/third_party/nixpkgs/pkgs/tools/misc/scdl/default.nix

38 lines
767 B
Nix

{ lib, python3Packages, fetchPypi }:
python3Packages.buildPythonApplication rec {
pname = "scdl";
version = "2.12.1";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-8BMO5/XJdAkz/E1ZDXavJudNSOiZdYLcZVMk1S8g9nU=";
};
build-system = [ python3Packages.setuptools ];
dependencies = with python3Packages; [
docopt-ng
mutagen
termcolor
requests
tqdm
pathvalidate
soundcloud-v2
filelock
];
# No tests in repository
doCheck = false;
pythonImportsCheck = [ "scdl" ];
meta = with lib; {
description = "Download Music from Soundcloud";
homepage = "https://github.com/flyingrub/scdl";
license = licenses.gpl2Only;
maintainers = [ ];
mainProgram = "scdl";
};
}