2018-08-05 15:33:00 +01:00
|
|
|
{ stdenv, pythonPackages, fetchFromGitHub }:
|
2018-04-13 21:10:21 +01:00
|
|
|
|
|
|
|
pythonPackages.buildPythonApplication rec {
|
|
|
|
pname = "dosage";
|
|
|
|
version = "2018.04.08";
|
|
|
|
PBR_VERSION = version;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "webcomics";
|
|
|
|
repo = "dosage";
|
|
|
|
rev = "b2fdc13feb65b93762928f7e99bac7b1b7b31591";
|
|
|
|
sha256 = "1p6vllqaf9s6crj47xqp97hkglch1kd4y8y4lxvzx3g2shhhk9hh";
|
|
|
|
};
|
2018-04-13 22:25:59 +01:00
|
|
|
buildInputs = with pythonPackages; [ pytest responses ];
|
2018-04-13 21:10:21 +01:00
|
|
|
propagatedBuildInputs = with pythonPackages; [ colorama lxml requests pbr ];
|
|
|
|
|
|
|
|
disabled = pythonPackages.pythonOlder "3.3";
|
|
|
|
|
2018-04-13 22:25:59 +01:00
|
|
|
checkPhase = ''
|
|
|
|
py.test tests/
|
|
|
|
'';
|
|
|
|
|
2018-04-13 21:10:21 +01:00
|
|
|
meta = {
|
|
|
|
description = "A comic strip downloader and archiver";
|
2018-05-01 04:03:23 +01:00
|
|
|
homepage = https://dosage.rocks/;
|
2018-08-05 15:33:00 +01:00
|
|
|
license = stdenv.lib.licenses.mit;
|
2018-04-13 21:10:21 +01:00
|
|
|
};
|
|
|
|
}
|