mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 16:53:21 +00:00
479f12be42
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
48 lines
812 B
Nix
48 lines
812 B
Nix
{ 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 ];
|
|
};
|
|
}
|