1{ lib, buildPythonPackage, fetchPypi, python, mock }:
2
3buildPythonPackage rec {
4 pname = "cepa";
5 version = "1.8.3";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "HcbwsyTTei7SyidGSOzo/SyWodL0QPWMDKF6/Ute3no=";
10 };
11
12 postPatch = ''
13 rm test/unit/installation.py
14 sed -i "/test.unit.installation/d" test/settings.cfg
15 # https://github.com/torproject/stem/issues/56
16 sed -i '/MOCK_VERSION/d' run_tests.py
17 '';
18
19 checkInputs = [ mock ];
20
21 checkPhase = ''
22 touch .gitignore
23 ${python.interpreter} run_tests.py -u
24 '';
25
26 meta = with lib; {
27 description = "Controller library that allows applications to interact with Tor";
28 homepage = "https://github.com/onionshare/cepa";
29 license = licenses.lgpl3Only;
30 maintainers = with maintainers; [ lourkeur ];
31 };
32}