about summary refs log tree commit diff
path: root/pkgs/applications/networking/protocol
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2022-05-19 13:02:46 +0200
committerFabian Affolter <mail@fabian-affolter.ch>2022-05-19 13:02:46 +0200
commitaf292cd163813965164bfb54ff72867dded07d45 (patch)
treeda3f9a1af37ef4586921fada8c43f30dd5e09434 /pkgs/applications/networking/protocol
parent0a6b1ff69f7ae545d55a821678c77f27895ade4f (diff)
protocol: fix build
Diffstat (limited to 'pkgs/applications/networking/protocol')
-rw-r--r--pkgs/applications/networking/protocol/default.nix21
1 files changed, 15 insertions, 6 deletions
diff --git a/pkgs/applications/networking/protocol/default.nix b/pkgs/applications/networking/protocol/default.nix
index 6690a75485bda..535cc3aa3171d 100644
--- a/pkgs/applications/networking/protocol/default.nix
+++ b/pkgs/applications/networking/protocol/default.nix
@@ -1,8 +1,12 @@
-{ lib, buildPythonApplication, fetchFromGitHub }:
+{ lib
+, python3
+, fetchFromGitHub
+}:
 
-buildPythonApplication {
-  pname = "protocol-unstable";
-  version = "2019-03-28";
+python3.pkgs.buildPythonApplication rec {
+  pname = "protocol";
+  version = "unstable-2019-03-28";
+  format = "setuptools";
 
   src = fetchFromGitHub {
     owner = "luismartingarcia";
@@ -11,10 +15,15 @@ buildPythonApplication {
     sha256 = "13l10jhf4vghanmhh3pn91b2jdciispxy0qadz4n08blp85qn9cm";
   };
 
+  postPatch = ''
+    substituteInPlace setup.py \
+      --replace "scripts=['protocol', 'constants.py', 'specs.py']" "scripts=['protocol'], py_modules=['constants', 'specs']"
+  '';
+
   meta = with lib; {
-    description = "An ASCII Header Generator for Network Protocols";
+    description = "ASCII Header Generator for Network Protocols";
     homepage = "https://github.com/luismartingarcia/protocol";
-    license = licenses.gpl3;
+    license = licenses.gpl3Plus;
     maintainers = with maintainers; [ teto ];
   };
 }