nixpkgs/pkgs/development/python-modules/stem/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
798 B
Nix
Raw Normal View History

2018-03-20 11:06:31 +00:00
{ lib, buildPythonPackage, fetchPypi, python, mock }:
2018-03-20 10:38:02 +00:00
buildPythonPackage rec {
pname = "stem";
2022-12-30 19:13:49 +00:00
version = "1.8.1";
2018-03-20 10:38:02 +00:00
src = fetchPypi {
inherit pname version;
hash = "sha256-gdQ6fGaLqde8EQOy56kR6dFIKUs3PSelmujaee96Pi8=";
2018-03-20 10:38:02 +00:00
};
2018-03-20 11:06:31 +00:00
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
2018-03-20 11:06:31 +00:00
'';
nativeCheckInputs = [ mock ];
2018-03-20 11:06:31 +00:00
checkPhase = ''
touch .gitignore
${python.interpreter} run_tests.py -u
'';
2018-03-20 10:38:02 +00:00
meta = with lib; {
description = "Controller library that allows applications to interact with Tor";
homepage = "https://stem.torproject.org/";
2018-03-20 10:38:02 +00:00
license = licenses.gpl3;
2021-12-18 09:25:46 +00:00
maintainers = with maintainers; [ ];
2018-03-20 10:38:02 +00:00
};
}