3
0
Fork 0
forked from mirrors/nixpkgs

pythonPackages.infoqscaper: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-16 17:22:59 -04:00 committed by Frederik Rietdijk
parent c1f0f33fee
commit 7a35ae188f
2 changed files with 35 additions and 26 deletions

View file

@ -0,0 +1,34 @@
{ stdenv
, buildPythonPackage
, fetchFromGitHub
, html5lib
, six
, beautifulsoup4
, pkgs
}:
buildPythonPackage rec {
version = "0.1.0";
pname = "infoqscraper";
src = pkgs.fetchFromGitHub {
owner = "cykl";
repo = pname;
rev = "v${version}";
sha256 = "07mxp4mla7fwfc032f3mxrhjarnhkjqdxxibf9ba87c93z3dq8jj";
};
# requires network
doCheck = false;
buildInputs = [ html5lib ];
propagatedBuildInputs = [ six beautifulsoup4 pkgs.ffmpeg pkgs.swftools pkgs.rtmpdump ];
meta = with stdenv.lib; {
description = "Discover presentations and/or create a movie consisting of slides and audio track from an infoq url";
homepage = "https://github.com/cykl/infoqscraper/wiki";
license = licenses.mit;
maintainers = with maintainers; [ edwtjo ];
};
}

View file

@ -2484,32 +2484,7 @@ in {
influxdb = callPackage ../development/python-modules/influxdb { };
infoqscraper = buildPythonPackage rec {
name = pname + "-" + version;
version = "0.1.0";
pname = "infoqscraper";
src = pkgs.fetchFromGitHub {
owner = "cykl";
repo = pname;
rev = "v" + version;
sha256 = "07mxp4mla7fwfc032f3mxrhjarnhkjqdxxibf9ba87c93z3dq8jj";
};
# requires network
doCheck = false;
buildInputs = with self; [ html5lib ];
propagatedBuildInputs = (with self; [ six beautifulsoup4 ])
++ (with pkgs; [ ffmpeg swftools rtmpdump ]);
meta = {
description = "Discover presentations and/or create a movie consisting of slides and audio track from an infoq url";
homepage = "https://github.com/cykl/infoqscraper/wiki";
license = licenses.mit;
maintainers = with maintainers; [ edwtjo ];
};
};
infoqscraper = callPackage ../development/python-modules/infoqscraper { };
inifile = buildPythonPackage rec {
name = "inifile-0.3";