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

31 lines
709 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";
version = "1.7.0";
2018-03-20 10:38:02 +00:00
src = fetchPypi {
inherit pname version;
sha256 = "1awiglfiajnx2hva9aqpj3fmdvdb4qg7cwnlfyih827m68y3cq8v";
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
'';
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/;
license = licenses.gpl3;
maintainers = with maintainers; [ phreedom ];
};
}