1{ lib
2, python3
3, fetchFromGitHub
4}:
5
6python3.pkgs.buildPythonApplication rec {
7 pname = "protocol";
8 version = "unstable-2019-03-28";
9 format = "setuptools";
10
11 src = fetchFromGitHub {
12 owner = "luismartingarcia";
13 repo = "protocol";
14 rev = "4e8326ea6c2d288be5464c3a7d9398df468c0ada";
15 sha256 = "13l10jhf4vghanmhh3pn91b2jdciispxy0qadz4n08blp85qn9cm";
16 };
17
18 postPatch = ''
19 substituteInPlace setup.py \
20 --replace "scripts=['protocol', 'constants.py', 'specs.py']" "scripts=['protocol'], py_modules=['constants', 'specs']"
21 '';
22
23 meta = with lib; {
24 description = "ASCII Header Generator for Network Protocols";
25 homepage = "https://github.com/luismartingarcia/protocol";
26 license = licenses.gpl3Plus;
27 maintainers = with maintainers; [ teto ];
28 };
29}