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

authored by

toonn and committed by
GitHub
4c654ddb ef9b54f4

+16 -14
+16 -14
pkgs/applications/graphics/dosage/default.nix
··· 1 - { lib, python3Packages, fetchFromGitHub }: 1 + { lib, python3Packages }: 2 2 3 3 python3Packages.buildPythonApplication rec { 4 4 pname = "dosage"; 5 - version = "2018.04.08"; 6 - PBR_VERSION = version; 5 + version = "2.17"; 7 6 8 - src = fetchFromGitHub { 9 - owner = "webcomics"; 10 - repo = "dosage"; 11 - rev = "b2fdc13feb65b93762928f7e99bac7b1b7b31591"; 12 - sha256 = "1p6vllqaf9s6crj47xqp97hkglch1kd4y8y4lxvzx3g2shhhk9hh"; 7 + src = python3Packages.fetchPypi { 8 + inherit pname version; 9 + sha256 = "0vmxgn9wd3j80hp4gr5iq06jrl4gryz5zgfdd2ah30d12sfcfig0"; 13 10 }; 14 - checkInputs = with python3Packages; [ pytest responses ]; 15 - propagatedBuildInputs = with python3Packages; [ colorama lxml requests pbr setuptools ]; 16 11 17 - disabled = python3Packages.pythonOlder "3.3"; 12 + checkInputs = with python3Packages; [ 13 + pytestCheckHook pytest-xdist responses 14 + ]; 15 + 16 + nativeBuildInputs = with python3Packages; [ setuptools-scm ]; 17 + 18 + propagatedBuildInputs = with python3Packages; [ 19 + colorama imagesize lxml requests setuptools six 20 + ]; 18 21 19 - checkPhase = '' 20 - py.test tests/ 21 - ''; 22 + disabled = python3Packages.pythonOlder "3.3"; 22 23 23 24 meta = { 24 25 description = "A comic strip downloader and archiver"; 25 26 homepage = "https://dosage.rocks/"; 26 27 license = lib.licenses.mit; 28 + maintainers = with lib.maintainers; [ toonn ]; 27 29 }; 28 30 }