Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09-beta 30 lines 711 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 ''; 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}