ddar: fix tests
This commit is contained in:
parent
80f84ceda2
commit
f4b98ac64f
|
@ -1,4 +1,4 @@
|
||||||
{ lib, buildPythonApplication, fetchFromGitHub, python, protobuf, sqlite, roundup }:
|
{ lib, buildPythonApplication, fetchFromGitHub, python, protobuf, roundup }:
|
||||||
|
|
||||||
buildPythonApplication rec {
|
buildPythonApplication rec {
|
||||||
pname = "ddar";
|
pname = "ddar";
|
||||||
|
@ -11,12 +11,26 @@ buildPythonApplication rec {
|
||||||
sha256 = "158jdy5261k9yw540g48hddy5zyqrr81ir9fjlcy4jnrwfkg7ynm";
|
sha256 = "158jdy5261k9yw540g48hddy5zyqrr81ir9fjlcy4jnrwfkg7ynm";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
prePatch = ''
|
||||||
|
substituteInPlace t/local-functions \
|
||||||
|
--replace 'PATH="$ddar_src:$PATH"' 'PATH="$out/bin:$PATH"'
|
||||||
|
# Test requires additional software and compilation of some C programs
|
||||||
|
substituteInPlace t/basic-test.sh \
|
||||||
|
--replace it_stores_and_extracts_corpus0 dont_test
|
||||||
|
'';
|
||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
make -f Makefile.prep synctus/ddar_pb2.py
|
make -f Makefile.prep synctus/ddar_pb2.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = [ protobuf ];
|
propagatedBuildInputs = [ protobuf ];
|
||||||
|
|
||||||
|
checkInputs = [ roundup ];
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
roundup t/basic-test.sh
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Unix de-duplicating archiver";
|
description = "Unix de-duplicating archiver";
|
||||||
license = licenses.gpl3;
|
license = licenses.gpl3;
|
||||||
|
|
Loading…
Reference in New Issue