pythonPackages.stem: run unit tests

This commit is contained in:
Robert Schütz 2018-03-20 12:06:31 +01:00
parent 061e79806e
commit 685dd8d21d

View File

@ -1,4 +1,4 @@
{ lib, buildPythonPackage, fetchPypi }:
{ lib, buildPythonPackage, fetchPypi, python, mock }:
buildPythonPackage rec {
pname = "stem";
@ -9,6 +9,18 @@ buildPythonPackage rec {
sha256 = "1va9p3ij7lxg6ixfsvaql06dn11l3fgpxmss1dhlvafm7sqizznp";
};
postPatch = ''
rm test/unit/installation.py
sed -i "/test.unit.installation/d" test/settings.cfg
'';
checkInputs = [ mock ];
checkPhase = ''
touch .gitignore
${python.interpreter} run_tests.py -u
'';
meta = with lib; {
description = "Controller library that allows applications to interact with Tor";
homepage = https://stem.torproject.org/;