Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 818 B view raw
1{ lib, buildPythonPackage, fetchPypi, python, mock }: 2 3buildPythonPackage rec { 4 pname = "cepa"; 5 version = "1.8.4"; 6 7 src = fetchPypi { 8 inherit pname version; 9 hash = "sha256-P7xwGsP8ic1/abxYptDXNbAU+kC2Hiwu/Tge0g21ipY="; 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 nativeCheckInputs = [ 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}