From 71878bc1c919b283ea53b2d2724703baf874bd85 Mon Sep 17 00:00:00 2001 From: Lein Matsumaru Date: Fri, 30 Jul 2021 16:48:06 +0000 Subject: [PATCH] python3Packages.torrequest: init at 0.1.0 --- .../python-modules/torrequest/default.nix | 29 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/development/python-modules/torrequest/default.nix diff --git a/pkgs/development/python-modules/torrequest/default.nix b/pkgs/development/python-modules/torrequest/default.nix new file mode 100644 index 00000000000..4c994f81023 --- /dev/null +++ b/pkgs/development/python-modules/torrequest/default.nix @@ -0,0 +1,29 @@ +{ lib, buildPythonPackage, fetchPypi, requests, pysocks, stem }: + +buildPythonPackage rec { + pname = "torrequest"; + version = "0.1.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "sha256-N0XU6j/9qY16A0Njx4ets3qrd72rQAlKTZNzks1NroI="; + }; + + propagatedBuildInputs = [ + pysocks requests stem + ]; + + # This package does not contain any tests. + doCheck = false; + + pythonImportsCheck = [ + "torrequest" + ]; + + meta = with lib; { + homepage = "https://github.com/erdiaker/torrequest"; + description = "Simple Python interface for HTTP(s) requests over Tor"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ applePrincess ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index ced481b704c..6f0ab5f8aa4 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8757,6 +8757,8 @@ in { # Used by streamlit, graphite_beacon, 2021-01-29 tornado_5 = callPackage ../development/python-modules/tornado/5.nix { }; + torrequest = callPackage ../development/python-modules/torrequest { }; + total-connect-client = callPackage ../development/python-modules/total-connect-client { }; towncrier = callPackage ../development/python-modules/towncrier {