python3Packages.torpy: init at 1.1.6 (#180229)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
parent
b5f9557001
commit
479f12be42
2 changed files with 49 additions and 0 deletions
47
pkgs/development/python-modules/torpy/default.nix
Normal file
47
pkgs/development/python-modules/torpy/default.nix
Normal file
|
@ -0,0 +1,47 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, fetchFromGitHub
|
||||
, cryptography
|
||||
, pytestCheckHook
|
||||
, requests
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "torpy";
|
||||
version = "1.1.6";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "torpyorg";
|
||||
repo = "torpy";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-Ni7GcpkxzAMtP4wBOFsi4KnxK+nC0XCZR/2Z/eS/C+w=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
cryptography
|
||||
requests
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
disabledTestPaths = [
|
||||
# requires network
|
||||
"tests/integration"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"cryptography"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Pure python Tor client";
|
||||
homepage = "https://github.com/torpyorg/torpy";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ larsr ];
|
||||
};
|
||||
}
|
|
@ -10846,6 +10846,8 @@ in {
|
|||
# Used by streamlit, 2021-01-29
|
||||
tornado_5 = callPackage ../development/python-modules/tornado/5.nix { };
|
||||
|
||||
torpy = callPackage ../development/python-modules/torpy { };
|
||||
|
||||
torrequest = callPackage ../development/python-modules/torrequest { };
|
||||
|
||||
total-connect-client = callPackage ../development/python-modules/total-connect-client { };
|
||||
|
|
Loading…
Reference in a new issue