gitAndTools.gita: enable tests
This commit is contained in:
parent
abf309e005
commit
a34547730f
1 changed files with 19 additions and 0 deletions
|
@ -1,6 +1,8 @@
|
|||
{ lib
|
||||
, buildPythonApplication
|
||||
, fetchFromGitHub
|
||||
, git
|
||||
, pytest
|
||||
, pyyaml
|
||||
, setuptools
|
||||
, installShellFiles
|
||||
|
@ -24,6 +26,23 @@ buildPythonApplication rec {
|
|||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
postUnpack = ''
|
||||
for case in "\n" ""; do
|
||||
substituteInPlace source/tests/test_main.py \
|
||||
--replace "'gita$case'" "'source$case'"
|
||||
done
|
||||
'';
|
||||
|
||||
checkInputs = [
|
||||
git
|
||||
pytest
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
git init
|
||||
pytest tests
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
installShellCompletion --bash --name gita ${src}/.gita-completion.bash
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue