2022-05-19 11:02:46 +00:00
|
|
|
{ lib
|
|
|
|
, python3
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
2017-12-26 07:40:14 +00:00
|
|
|
|
2022-05-19 11:02:46 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "protocol";
|
|
|
|
version = "unstable-2019-03-28";
|
|
|
|
format = "setuptools";
|
2017-12-26 07:40:14 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "luismartingarcia";
|
|
|
|
repo = "protocol";
|
2019-11-06 18:38:03 +00:00
|
|
|
rev = "4e8326ea6c2d288be5464c3a7d9398df468c0ada";
|
|
|
|
sha256 = "13l10jhf4vghanmhh3pn91b2jdciispxy0qadz4n08blp85qn9cm";
|
2017-12-26 07:40:14 +00:00
|
|
|
};
|
|
|
|
|
2022-05-19 11:02:46 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "scripts=['protocol', 'constants.py', 'specs.py']" "scripts=['protocol'], py_modules=['constants', 'specs']"
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2022-05-19 11:02:46 +00:00
|
|
|
description = "ASCII Header Generator for Network Protocols";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/luismartingarcia/protocol";
|
2022-05-19 11:02:46 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2017-12-26 07:40:14 +00:00
|
|
|
maintainers = with maintainers; [ teto ];
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "protocol";
|
2017-12-26 07:40:14 +00:00
|
|
|
};
|
|
|
|
}
|