3
0
Fork 0
forked from mirrors/nixpkgs

pythonPackages.timetagger: Add test inputs

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Suggested-by: Joachim Ernst <mail-maintainer@0x4A6F.dev>
This commit is contained in:
Matthias Beyer 2021-12-21 19:33:39 +01:00
parent 87419823ad
commit 6304e619bc

View file

@ -1,6 +1,8 @@
{ lib
, python3Packages
, fetchFromGitHub
, pytestCheckHook
, requests
}:
python3Packages.buildPythonPackage rec {
@ -21,7 +23,16 @@ python3Packages.buildPythonPackage rec {
maintainers = with maintainers; [ matthiasbeyer ];
};
doCheck = false;
checkInputs = [
pytestCheckHook
requests
];
preCheck = ''
# https://github.com/NixOS/nixpkgs/issues/12591
mkdir -p check-phase
export HOME=$(pwd)/check-phase
'';
propagatedBuildInputs = with python3Packages; [
asgineer