nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, beautifulsoup4
3, buildPythonApplication
4, fetchPypi
5, filelock
6, requests
7, tqdm
8, setuptools
9, six
10}:
11
12buildPythonApplication rec {
13 pname = "gdown";
14 version = "4.4.0";
15 format = "setuptools";
16
17 src = fetchPypi {
18 inherit pname version;
19 sha256 = "sha256-GPw6TaSiJz3reqKcdIa+TfORnZBBWK1qaj4lyBFUcNc=";
20 };
21
22 propagatedBuildInputs = [
23 beautifulsoup4
24 filelock
25 requests
26 tqdm
27 setuptools
28 six
29 ];
30
31 checkPhase = ''
32 $out/bin/gdown --help > /dev/null
33 '';
34
35 pythonImportsCheck = [
36 "gdown"
37 ];
38
39 meta = with lib; {
40 description = "A CLI tool for downloading large files from Google Drive";
41 homepage = "https://github.com/wkentaro/gdown";
42 license = licenses.mit;
43 maintainers = with maintainers; [ breakds ];
44 };
45}