From 7a35ae188f24f5619bb63f50de51ac3b72ed551d Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Tue, 16 Oct 2018 17:22:59 -0400 Subject: pythonPackages.infoqscaper: refactor move to python-modules --- .../python-modules/infoqscraper/default.nix | 34 ++++++++++++++++++++++ pkgs/top-level/python-packages.nix | 27 +---------------- 2 files changed, 35 insertions(+), 26 deletions(-) create mode 100644 pkgs/development/python-modules/infoqscraper/default.nix (limited to 'pkgs') diff --git a/pkgs/development/python-modules/infoqscraper/default.nix b/pkgs/development/python-modules/infoqscraper/default.nix new file mode 100644 index 000000000000..f9ced7e63daf --- /dev/null +++ b/pkgs/development/python-modules/infoqscraper/default.nix @@ -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 ]; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index fc10d29535df..4553cbc40d07 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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"; -- cgit 1.4.1