@@ -1,21 +1,35 @@
1−{ lib, stdenv, buildPythonPackage, python, fetchFromGitHub
2−, attrs, cryptography, async-timeout, pytest-aiohttp, pytestCheckHook
1+{ lib
2+, stdenv
3+, async-timeout
4+, attrs
5+, buildPythonPackage
6+, cryptography
7+, fetchFromGitHub
8+, pytest-aiohttp
9+, pytestCheckHook
310}:
411
512buildPythonPackage rec {
613 pname = "snitun";
7− version = "0.21.0";
14+ version = "0.27.0";
815
916 src = fetchFromGitHub {
1017 owner = "NabuCasa";
1118 repo = pname;
1219 rev = version;
13− sha256 = "sha256-oZHi/H9HOqGTFuhqPSZXntMzVJ3ZT4zNejezo0cDtqg=";
20+ sha256 = "sha256-vx9F+Nat69Yadd+YpsnBCstnxCEICFJI14TdG6PvstI=";
1421 };
1522
16− propagatedBuildInputs = [ attrs cryptography async-timeout ];
23+ propagatedBuildInputs = [
24+ async-timeout
25+ attrs
26+ cryptography
27+ ];
1728
18− checkInputs = [ pytestCheckHook pytest-aiohttp ];
29+ checkInputs = [
30+ pytest-aiohttp
31+ pytestCheckHook
32+ ];
1933
2034 disabledTests = lib.optionals stdenv.isDarwin [
2135 "test_multiplexer_data_channel_abort_full" # https://github.com/NabuCasa/snitun/issues/61
@@ -26,10 +40,13 @@ buildPythonPackage rec {
2640 "test_peer_listener_timeout"
2741 ];
2842
43+ pythonImportsCheck = [ "snitun" ];
44+
2945 meta = with lib; {
3046 homepage = "https://github.com/nabucasa/snitun";
3147 description = "SNI proxy with TCP multiplexer";
32− license = licenses.gpl3;
48+ license = licenses.gpl3Only;
3349 maintainers = with maintainers; [ Scriptkiddi ];
50+ platforms = platforms.linux;
3451 };
3552}