64 lines
1.1 KiB
Nix
64 lines
1.1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, asgineer
|
|
, bcrypt
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, iptools
|
|
, itemdb
|
|
, jinja2
|
|
, markdown
|
|
, nodejs
|
|
, pscript
|
|
, pyjwt
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, requests
|
|
, uvicorn
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "timetagger";
|
|
version = "23.7.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "almarklein";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-OLIjb5mFNNi0elPeXaPoK9V0fVw2Cnd7CHjPc1oGfyM=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
asgineer
|
|
bcrypt
|
|
iptools
|
|
itemdb
|
|
jinja2
|
|
markdown
|
|
pscript
|
|
pyjwt
|
|
uvicorn
|
|
];
|
|
|
|
preCheck = ''
|
|
export HOME=$(mktemp -d)
|
|
'';
|
|
|
|
nativeCheckInputs = [
|
|
nodejs
|
|
pytestCheckHook
|
|
requests
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Library to interact with TimeTagger";
|
|
homepage = "https://github.com/almarklein/timetagger";
|
|
changelog = "https://github.com/almarklein/timetagger/releases/tag/v${version}";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ matthiasbeyer ];
|
|
};
|
|
}
|