depot/third_party/nixpkgs/pkgs/development/python-modules/stem/default.nix
Default email 83405b6dd2 Project import generated by Copybara.
GitOrigin-RevId: ac718d02867a84b42522a0ece52d841188208f2c
2023-03-15 17:39:30 +01:00

32 lines
798 B
Nix

{ lib, buildPythonPackage, fetchPypi, python, mock }:
buildPythonPackage rec {
pname = "stem";
version = "1.8.1";
src = fetchPypi {
inherit pname version;
hash = "sha256-gdQ6fGaLqde8EQOy56kR6dFIKUs3PSelmujaee96Pi8=";
};
postPatch = ''
rm test/unit/installation.py
sed -i "/test.unit.installation/d" test/settings.cfg
# https://github.com/torproject/stem/issues/56
sed -i '/MOCK_VERSION/d' run_tests.py
'';
nativeCheckInputs = [ mock ];
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;
maintainers = with maintainers; [ ];
};
}