summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorMatthieu Coudron <mattator@gmail.com>2017-12-26 16:40:14 +0900
committerMatthieu Coudron <mattator@gmail.com>2017-12-26 18:07:05 +0900
commit0d3117b506bd94bb6332057706ef2cb02c44e590 (patch)
treefafbfaaaaf97a356e2860c82eff03f85ba561c4f /pkgs
parent1bc288591ea4fe3159b7630dcd2b57733d80a2ff (diff)
downloadnixpkgs-0d3117b506bd94bb6332057706ef2cb02c44e590.tar
nixpkgs-0d3117b506bd94bb6332057706ef2cb02c44e590.tar.gz
nixpkgs-0d3117b506bd94bb6332057706ef2cb02c44e590.tar.bz2
nixpkgs-0d3117b506bd94bb6332057706ef2cb02c44e590.tar.lz
nixpkgs-0d3117b506bd94bb6332057706ef2cb02c44e590.tar.xz
nixpkgs-0d3117b506bd94bb6332057706ef2cb02c44e590.tar.zst
nixpkgs-0d3117b506bd94bb6332057706ef2cb02c44e590.zip
protocol: init at 20171226
An ASCII Header Generator for Network Protocols http://www.luismg.com/protocol/

Run with `$ protocol tcp` for instance to see:

 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|          Source Port          |        Destination Port       |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                        Sequence Number                        |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                     Acknowledgment Number                     |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Offset|  Res. |     Flags     |             Window            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            Checksum           |         Urgent Pointer        |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                    Options                    |    Padding    |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/python-modules/protocol/default.nix20
-rw-r--r--pkgs/top-level/python-packages.nix2
2 files changed, 22 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/protocol/default.nix b/pkgs/development/python-modules/protocol/default.nix
new file mode 100644
index 00000000000..f8ff177437c
--- /dev/null
+++ b/pkgs/development/python-modules/protocol/default.nix
@@ -0,0 +1,20 @@
+{ stdenv, buildPythonPackage, fetchFromGitHub }:
+
+buildPythonPackage rec {
+  pname = "protocol";
+  version = "20171226";
+
+  src = fetchFromGitHub {
+    owner = "luismartingarcia";
+    repo = "protocol";
+    rev = "d450da7d8a58595d8ef82f1d199a80411029fc7d";
+    sha256 = "1g31s2xx0bw8ak5ag1c6mv0p0b8bj5dp3lkk9mxaf2ndj1m1qdkw";
+  };
+
+  meta = with stdenv.lib; {
+    description = "An ASCII Header Generator for Network Protocols";
+    homepage = https://github.com/luismartingarcia/protocol;
+    license = licenses.gpl3;
+    maintainers = with maintainers; [ teto ];
+  };
+}
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index b1a8fca5c43..669c17694dc 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -22384,6 +22384,8 @@ EOF
 
   trezor = callPackage ../development/python-modules/trezor { };
 
+  protocol = callPackage ../development/python-modules/protocol { };
+
   trezor_agent = buildPythonPackage rec{
     name = "${pname}-${version}";
     pname = "trezor_agent";