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

33 lines
795 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";
2020-02-12 12:07:54 +00:00
version = "1.8.0";
2018-03-20 10:38:02 +00:00
src = fetchPypi {
inherit pname version;
2020-02-12 12:07:54 +00:00
sha256 = "1hk8alc0r4m669ggngdfvryndd0fbx0w62sclcmg55af4ak8xd50";
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
'';
checkInputs = [ mock ];
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
};
}