56 lines
891 B
Nix
56 lines
891 B
Nix
{ stdenv
|
|
, lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, asgineer
|
|
, bcrypt
|
|
, itemdb
|
|
, jinja2
|
|
, markdown
|
|
, pscript
|
|
, pyjwt
|
|
, uvicorn
|
|
, pytestCheckHook
|
|
, requests
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "timetagger";
|
|
version = "22.12.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "almarklein";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "sha256-yoDILEE/mUWkGPWp2xTKlkpmw1gZctaQmBsed8U7bHc=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
asgineer
|
|
bcrypt
|
|
itemdb
|
|
jinja2
|
|
markdown
|
|
pscript
|
|
pyjwt
|
|
uvicorn
|
|
];
|
|
|
|
preCheck = ''
|
|
export HOME=$(mktemp -d)
|
|
'';
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
requests
|
|
];
|
|
|
|
meta = with lib; {
|
|
broken = stdenv.isDarwin;
|
|
homepage = "https://timetagger.app";
|
|
license = licenses.gpl3Only;
|
|
description = "Tag your time, get the insight";
|
|
maintainers = with maintainers; [ matthiasbeyer ];
|
|
};
|
|
}
|