diff options
author | legendofmiracles <legendofmiracles@protonmail.com> | 2022-01-25 18:34:52 -0600 |
---|---|---|
committer | Jonathan Ringer <jonringer@users.noreply.github.com> | 2022-01-28 09:50:10 -0800 |
commit | ef0bee504770e9d1b8ee553425c379556bccf60e (patch) | |
tree | e6a6e0b3f671affd6e9d578312b5067668452855 /pkgs/development | |
parent | 60376d0d7dca6ed29d60280cd17b27b37645d141 (diff) |
python3Packages.timetagger: format
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/python-modules/timetagger/default.nix | 33 |
1 files changed, 15 insertions, 18 deletions
diff --git a/pkgs/development/python-modules/timetagger/default.nix b/pkgs/development/python-modules/timetagger/default.nix index 0efc930550bab..c41952f854241 100644 --- a/pkgs/development/python-modules/timetagger/default.nix +++ b/pkgs/development/python-modules/timetagger/default.nix @@ -16,24 +16,6 @@ python3Packages.buildPythonPackage rec { sha256 = "1x0hy9wnifi694glwv6irhnjvwh1kgl6wn6qlk5qy4x6z6bkii24"; }; - meta = with lib; { - homepage = "https://timetagger.app"; - license = licenses.gpl3; - description = "Tag your time, get the insight"; - maintainers = with maintainers; [ matthiasbeyer ]; - }; - - checkInputs = [ - pytestCheckHook - requests - ]; - - preCheck = '' - # https://github.com/NixOS/nixpkgs/issues/12591 - mkdir -p check-phase - export HOME=$(pwd)/check-phase - ''; - propagatedBuildInputs = with python3Packages; [ asgineer itemdb @@ -44,4 +26,19 @@ python3Packages.buildPythonPackage rec { uvicorn ]; + preCheck = '' + export HOME=$(mktemp -d) + ''; + + checkInputs = [ + pytestCheckHook + requests + ]; + + meta = with lib; { + homepage = "https://timetagger.app"; + license = licenses.gpl3; + description = "Tag your time, get the insight"; + maintainers = with maintainers; [ matthiasbeyer ]; + }; } |