nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, buildPythonPackage, youtube-dl, fetchPypi }:
2buildPythonPackage rec {
3 name = "${pname}-${version}";
4 pname = "pafy";
5 version = "0.5.3.1";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "1a7dxi95m1043rxx1r5x3ngb66nwlq6aqcasyqqjzmmmjps4zrim";
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