at 23.05-pre 795 B view raw
1{ lib, buildPythonPackage, fetchPypi, python, mock }: 2 3buildPythonPackage rec { 4 pname = "stem"; 5 version = "1.8.0"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "1hk8alc0r4m669ggngdfvryndd0fbx0w62sclcmg55af4ak8xd50"; 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://stem.torproject.org/"; 29 license = licenses.gpl3; 30 maintainers = with maintainers; [ ]; 31 }; 32}