Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

pythonPackages.stem: run unit tests

(cherry picked from commit 685dd8d21db16ffb3d8888f4f9cd5e6d5dd3c6c6)

+13 -1
+13 -1
pkgs/development/python-modules/stem/default.nix
··· 1 - { lib, buildPythonPackage, fetchPypi }: 1 + { lib, buildPythonPackage, fetchPypi, python, mock }: 2 2 3 3 buildPythonPackage rec { 4 4 pname = "stem"; ··· 8 8 inherit pname version; 9 9 sha256 = "1va9p3ij7lxg6ixfsvaql06dn11l3fgpxmss1dhlvafm7sqizznp"; 10 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 + ''; 11 23 12 24 meta = with lib; { 13 25 description = "Controller library that allows applications to interact with Tor";