Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.03 709 B view raw
1{ lib, buildPythonPackage, fetchPypi, python, mock }: 2 3buildPythonPackage rec { 4 pname = "stem"; 5 version = "1.7.1"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "18lc95pmc7i089nlsb06dsxyjl5wbhxfqgdxbjcia35ndh8z7sn9"; 10 }; 11 12 postPatch = '' 13 rm test/unit/installation.py 14 sed -i "/test.unit.installation/d" test/settings.cfg 15 ''; 16 17 checkInputs = [ mock ]; 18 19 checkPhase = '' 20 touch .gitignore 21 ${python.interpreter} run_tests.py -u 22 ''; 23 24 meta = with lib; { 25 description = "Controller library that allows applications to interact with Tor"; 26 homepage = https://stem.torproject.org/; 27 license = licenses.gpl3; 28 maintainers = with maintainers; [ phreedom ]; 29 }; 30}