1{ lib, buildPythonPackage, youtube-dl, fetchPypi }:
2buildPythonPackage rec {
3 name = "${pname}-${version}";
4 pname = "pafy";
5 version = "0.5.4";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "e842dc589a339a870b5869cc3802f2e95824edf347f65128223cd5ebdff21024";
10 };
11
12 # No tests included in archive
13 doCheck = false;
14
15 propagatedBuildInputs = [ youtube-dl ];
16
17 meta = with lib; {
18 description = "A library to download YouTube content and retrieve metadata";
19 homepage = http://np1.github.io/pafy/;
20 license = licenses.lgpl3Plus;
21 maintainers = with maintainers; [ odi ];
22 };
23}
24