diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/youtube-search/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/youtube-search/default.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/youtube-search/default.nix b/nixpkgs/pkgs/development/python-modules/youtube-search/default.nix new file mode 100644 index 000000000000..41424aa56d2e --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/youtube-search/default.nix @@ -0,0 +1,26 @@ +{ lib, buildPythonPackage, fetchFromGitHub, requests }: + +buildPythonPackage rec { + pname = "youtube-search"; + version = "unstable-2021-02-27"; + + src = fetchFromGitHub { + owner = "joetats"; + repo = "youtube_search"; + rev = "886fe1b16c829215ee0984b6859f874b4a30d875"; + sha256 = "sha256-3ECJ6iHNzx5PLgpTFraFzAYbKnyMYRf/iJ0zajU+hlo="; + }; + + propagatedBuildInputs = [ requests ]; + + # Check disabled due to relative import with no known parent package + doCheck = false; + pythonImportsCheck = [ "youtube_search" ]; + + meta = with lib; { + description = "Tool for searching for youtube videos to avoid using their heavily rate-limited API"; + homepage = "https://github.com/joetats/youtube_search"; + license = licenses.mit; + maintainers = with maintainers; [ j0hax ]; + }; +} |