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