at 23.11-beta 1.1 kB view raw
1{ lib 2, buildPythonPackage 3, fetchpatch 4, fetchPypi 5, python 6, mock 7}: 8 9buildPythonPackage rec { 10 pname = "cepa"; 11 version = "1.8.4"; 12 13 src = fetchPypi { 14 inherit pname version; 15 hash = "sha256-P7xwGsP8ic1/abxYptDXNbAU+kC2Hiwu/Tge0g21ipY="; 16 }; 17 18 patches = [ 19 (fetchpatch { 20 name = "python-3.11-compatibility.patch"; 21 url = "https://github.com/onionshare/cepa/commit/0bf9aee7151e65594c532826bb04636e1d80fb6f.patch"; 22 hash = "sha256-roSt9N5OvnOOxKZUee86zGXt0AsZCcbBdV2cLz1MB2k="; 23 }) 24 ]; 25 26 postPatch = '' 27 rm test/unit/installation.py 28 sed -i "/test.unit.installation/d" test/settings.cfg 29 # https://github.com/torproject/stem/issues/56 30 sed -i '/MOCK_VERSION/d' run_tests.py 31 ''; 32 33 nativeCheckInputs = [ mock ]; 34 35 checkPhase = '' 36 touch .gitignore 37 ${python.interpreter} run_tests.py -u 38 ''; 39 40 meta = with lib; { 41 description = "Controller library that allows applications to interact with Tor"; 42 homepage = "https://github.com/onionshare/cepa"; 43 license = licenses.lgpl3Only; 44 maintainers = with maintainers; [ lourkeur ]; 45 }; 46}