From 8d61dd8ce38acb025e471a831482c47cecb0df52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9-Patrick=20Bubel?= Date: Fri, 13 Apr 2018 22:10:21 +0200 Subject: [PATCH] dosage: 2016.03.17 -> 2018.04.08 Dosage works again, but requires Python 3 now. As it is an application, it was also moved to its own file. --- pkgs/applications/graphics/dosage/default.nix | 24 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 +++- pkgs/top-level/python-packages.nix | 23 ------------------ 3 files changed, 27 insertions(+), 24 deletions(-) create mode 100644 pkgs/applications/graphics/dosage/default.nix diff --git a/pkgs/applications/graphics/dosage/default.nix b/pkgs/applications/graphics/dosage/default.nix new file mode 100644 index 000000000000..48302d6bcb9c --- /dev/null +++ b/pkgs/applications/graphics/dosage/default.nix @@ -0,0 +1,24 @@ +{ stdenv, pythonPackages, fetchFromGitHub }: + +pythonPackages.buildPythonApplication rec { + name = "${pname}-${version}"; + pname = "dosage"; + version = "2018.04.08"; + PBR_VERSION = version; + + src = fetchFromGitHub { + owner = "webcomics"; + repo = "dosage"; + rev = "b2fdc13feb65b93762928f7e99bac7b1b7b31591"; + sha256 = "1p6vllqaf9s6crj47xqp97hkglch1kd4y8y4lxvzx3g2shhhk9hh"; + }; + buildInputs = [ pythonPackages.pytest ]; + propagatedBuildInputs = with pythonPackages; [ colorama lxml requests pbr ]; + + disabled = pythonPackages.pythonOlder "3.3"; + + meta = { + description = "A comic strip downloader and archiver"; + homepage = http://dosage.rocks/; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 27636fb8c186..5398c065ed63 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1120,7 +1120,9 @@ with pkgs; doitlive = callPackage ../tools/misc/doitlive { }; - dosage = pythonPackages.dosage; + dosage = callPackage ../applications/graphics/dosage { + pythonPackages = python3Packages; + }; dpic = callPackage ../tools/graphics/dpic { }; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 535da74d9f64..489021a597e1 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1221,29 +1221,6 @@ in { defusedxml = callPackage ../development/python-modules/defusedxml {}; - dosage = buildPythonPackage rec { - name = "${pname}-${version}"; - pname = "dosage"; - version = "2016.03.17"; - PBR_VERSION = version; - src = pkgs.fetchFromGitHub { - owner = "webcomics"; - repo = "dosage"; - rev = "1af022895e5f86bc43da95754c4c4ed305790f5b"; - sha256 = "1bkqhlzigy656pam0znp2ddp1y5sqzyhw3c4fyy58spcafldq4j6"; - }; - buildInputs = with self; [ pytest ]; - propagatedBuildInputs = with self; [ requests lxml pbr ]; - # prompt_toolkit doesn't work on 3.5 on OSX. - doCheck = !isPy35; - - meta = { - description = "A comic strip downloader and archiver"; - homepage = http://dosage.rocks/; - broken = true; # ctypes error - }; - }; - dugong = callPackage ../development/python-modules/dugong {}; iowait = callPackage ../development/python-modules/iowait {};