about summary refs log tree commit diff
path: root/pkgs/applications/graphics
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2021-08-21 15:04:25 +0200
committerGitHub <noreply@github.com>2021-08-21 15:04:25 +0200
commit4c654ddbc062083cb37a7e8ea251b4d434405972 (patch)
treec5a7d66cb28662f7b9abcb84ef3c5e33a2f06fc2 /pkgs/applications/graphics
parentef9b54f47e5316bf5c353ec91ceb0b7191300414 (diff)
dosage: 2018.04.08 -> 2.17 (#132535)
* dosage: 2018.04.08 -> 2.17

I've assumed maintainership of the expression because there was none.
Using `fetchPypi` rather than `fetchFromGithub` because the Github tarballs
don't contain all the metadata necessary for the installation.

* dosage: Use pytestCheckHook rather than py.test

* dosage: Re-add test dependencies

* dosage: Add setuptools_scm build input

* dosage: Add six dependency
Diffstat (limited to 'pkgs/applications/graphics')
-rw-r--r--pkgs/applications/graphics/dosage/default.nix30
1 files changed, 16 insertions, 14 deletions
diff --git a/pkgs/applications/graphics/dosage/default.nix b/pkgs/applications/graphics/dosage/default.nix
index db0012a184bef..e5e77dccbbb42 100644
--- a/pkgs/applications/graphics/dosage/default.nix
+++ b/pkgs/applications/graphics/dosage/default.nix
@@ -1,28 +1,30 @@
-{ lib, python3Packages, fetchFromGitHub }:
+{ lib, python3Packages }:
 
 python3Packages.buildPythonApplication rec {
   pname = "dosage";
-  version = "2018.04.08";
-  PBR_VERSION = version;
+  version = "2.17";
 
-  src = fetchFromGitHub {
-    owner = "webcomics";
-    repo = "dosage";
-    rev = "b2fdc13feb65b93762928f7e99bac7b1b7b31591";
-    sha256 = "1p6vllqaf9s6crj47xqp97hkglch1kd4y8y4lxvzx3g2shhhk9hh";
+  src = python3Packages.fetchPypi {
+    inherit pname version;
+    sha256 = "0vmxgn9wd3j80hp4gr5iq06jrl4gryz5zgfdd2ah30d12sfcfig0";
   };
-  checkInputs = with python3Packages; [ pytest responses ];
-  propagatedBuildInputs = with python3Packages; [ colorama lxml requests pbr setuptools ];
 
-  disabled = python3Packages.pythonOlder "3.3";
+  checkInputs = with python3Packages; [
+    pytestCheckHook pytest-xdist responses
+  ];
+
+  nativeBuildInputs = with python3Packages; [ setuptools-scm ];
 
-  checkPhase = ''
-    py.test tests/
-  '';
+  propagatedBuildInputs = with python3Packages; [
+    colorama imagesize lxml requests setuptools six
+  ];
+
+  disabled = python3Packages.pythonOlder "3.3";
 
   meta = {
     description = "A comic strip downloader and archiver";
     homepage = "https://dosage.rocks/";
     license = lib.licenses.mit;
+    maintainers = with lib.maintainers; [ toonn ];
   };
 }