nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 requests,
6}:
7
8buildPythonPackage rec {
9 pname = "youtube-search";
10 version = "2.2.0";
11 format = "setuptools";
12
13 src = fetchPypi {
14 inherit version;
15 pname = "youtube_search";
16 hash = "sha256-U5inzWXZt1qLrCfvaJ7ARKurPL+h8g0Z2wJ3ZZrHDZg=";
17 };
18
19 propagatedBuildInputs = [ requests ];
20
21 # Tests require network connection
22 doCheck = false;
23
24 pythonImportsCheck = [ "youtube_search" ];
25
26 meta = {
27 description = "Tool for searching for youtube videos to avoid using their heavily rate-limited API";
28 homepage = "https://github.com/joetats/youtube_search";
29 license = lib.licenses.mit;
30 maintainers = with lib.maintainers; [ j0hax ];
31 };
32}