2018-03-20 12:06:31 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, python, mock }:
|
2018-03-20 11:38:02 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "stem";
|
2019-01-02 11:49:55 +01:00
|
|
|
version = "1.7.1";
|
2018-03-20 11:38:02 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-01-02 11:49:55 +01:00
|
|
|
sha256 = "18lc95pmc7i089nlsb06dsxyjl5wbhxfqgdxbjcia35ndh8z7sn9";
|
2018-03-20 11:38:02 +01:00
|
|
|
};
|
|
|
|
|
2018-03-20 12:06:31 +01:00
|
|
|
postPatch = ''
|
|
|
|
rm test/unit/installation.py
|
|
|
|
sed -i "/test.unit.installation/d" test/settings.cfg
|
|
|
|
'';
|
|
|
|
|
|
|
|
checkInputs = [ mock ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
touch .gitignore
|
|
|
|
${python.interpreter} run_tests.py -u
|
|
|
|
'';
|
|
|
|
|
2018-03-20 11:38:02 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Controller library that allows applications to interact with Tor";
|
|
|
|
homepage = https://stem.torproject.org/;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ phreedom ];
|
|
|
|
};
|
|
|
|
}
|