2020-04-24 23:36:52 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, python, mock }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "stem";
|
2023-01-20 10:41:00 +00:00
|
|
|
version = "1.8.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-gdQ6fGaLqde8EQOy56kR6dFIKUs3PSelmujaee96Pi8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
rm test/unit/installation.py
|
|
|
|
sed -i "/test.unit.installation/d" test/settings.cfg
|
2021-05-20 23:08:51 +00:00
|
|
|
# https://github.com/torproject/stem/issues/56
|
|
|
|
sed -i '/MOCK_VERSION/d' run_tests.py
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ mock ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
touch .gitignore
|
|
|
|
${python.interpreter} run_tests.py -u
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Controller library that allows applications to interact with Tor";
|
|
|
|
homepage = "https://stem.torproject.org/";
|
|
|
|
license = licenses.gpl3;
|
2021-12-21 02:18:32 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|