watson: 1.9.0 -> 1.10.0

This commit is contained in:
Alvar Penning 2020-07-19 13:24:42 +02:00
parent 27f514ac0d
commit 7a53f9b096

View File

@ -1,27 +1,18 @@
{ stdenv, fetchFromGitHub, pythonPackages, fetchpatch, installShellFiles }: { stdenv, fetchFromGitHub, pythonPackages, installShellFiles }:
with pythonPackages; with pythonPackages;
buildPythonApplication rec { buildPythonApplication rec {
pname = "watson"; pname = "watson";
version = "1.9.0"; version = "1.10.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "TailorDev"; owner = "TailorDev";
repo = "Watson"; repo = "Watson";
rev = version; rev = version;
sha256 = "0f0ldwadjf0xncx3m4w4wwqddd4wjwcsrbhby8vgsnqsn48dnfcx"; sha256 = "1s0k86ldqky6avwjaxkw1y02wyf59qwqldcahy3lhjn1b5dgsb3s";
}; };
patches = [
# https://github.com/TailorDev/Watson/pull/380
# The nixpkgs' arrow version is too new / not supported by Watson's latest release.
(fetchpatch {
url = "https://github.com/TailorDev/Watson/commit/69b9ad25551525d52060f7fb2eef3653e872a455.patch";
sha256 = "0zrswgr0y219f92zi41m7cymfaspkhmlada4v9ijnsjjdb4bn2c9";
})
];
checkPhase = '' checkPhase = ''
pytest -vs tests pytest -vs tests
''; '';
@ -39,6 +30,6 @@ buildPythonApplication rec {
homepage = "https://tailordev.github.io/Watson/"; homepage = "https://tailordev.github.io/Watson/";
description = "A wonderful CLI to track your time!"; description = "A wonderful CLI to track your time!";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ mguentner nathyong ]; maintainers = with maintainers; [ mguentner nathyong geistesk ];
}; };
} }