mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 04:33:57 +00:00
0a53c6b565
For reasons I have renamed my GitHub account and would like to include this name change here.
36 lines
960 B
Nix
36 lines
960 B
Nix
{ stdenv, fetchFromGitHub, pythonPackages, installShellFiles }:
|
|
|
|
with pythonPackages;
|
|
|
|
buildPythonApplication rec {
|
|
pname = "watson";
|
|
version = "1.10.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "TailorDev";
|
|
repo = "Watson";
|
|
rev = version;
|
|
sha256 = "1s0k86ldqky6avwjaxkw1y02wyf59qwqldcahy3lhjn1b5dgsb3s";
|
|
};
|
|
|
|
checkPhase = ''
|
|
pytest -vs tests
|
|
'';
|
|
|
|
postInstall = ''
|
|
installShellCompletion --bash --name watson watson.completion
|
|
installShellCompletion --zsh --name _watson watson.zsh-completion
|
|
'';
|
|
|
|
checkInputs = [ py pytest pytest-datafiles pytest-mock pytestrunner ];
|
|
propagatedBuildInputs = [ arrow click click-didyoumean requests ];
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = "https://tailordev.github.io/Watson/";
|
|
description = "A wonderful CLI to track your time!";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ mguentner nathyong oxzi ];
|
|
};
|
|
}
|