python312Packages.dash-renderer: remove (#369714)
[NixPkgs.git] / pkgs / development / python-modules / torpy / default.nix
blobd6f257dfa9ad32d6664a73829f74590d9b7cc162
2   lib,
3   buildPythonPackage,
4   pythonOlder,
5   fetchFromGitHub,
6   cryptography,
7   pytestCheckHook,
8   requests,
9 }:
11 buildPythonPackage rec {
12   pname = "torpy";
13   version = "1.1.6";
14   format = "setuptools";
16   disabled = pythonOlder "3.6";
18   src = fetchFromGitHub {
19     owner = "torpyorg";
20     repo = "torpy";
21     rev = "v${version}";
22     hash = "sha256-Ni7GcpkxzAMtP4wBOFsi4KnxK+nC0XCZR/2Z/eS/C+w=";
23   };
25   propagatedBuildInputs = [
26     cryptography
27     requests
28   ];
30   nativeCheckInputs = [ pytestCheckHook ];
32   disabledTestPaths = [
33     # requires network
34     "tests/integration"
35   ];
37   pythonImportsCheck = [ "cryptography" ];
39   meta = with lib; {
40     description = "Pure python Tor client";
41     homepage = "https://github.com/torpyorg/torpy";
42     license = licenses.asl20;
43     maintainers = with maintainers; [ larsr ];
44   };