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

31 lines
711 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
'';
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;
maintainers = with maintainers; [ phreedom ];
};
}