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