protocol: fix build

+16 -7
+15 -6
pkgs/applications/networking/protocol/default.nix
··· 1 - { lib, buildPythonApplication, fetchFromGitHub }: 1 + { lib 2 + , python3 3 + , fetchFromGitHub 4 + }: 2 5 3 - buildPythonApplication { 4 - pname = "protocol-unstable"; 5 - version = "2019-03-28"; 6 + python3.pkgs.buildPythonApplication rec { 7 + pname = "protocol"; 8 + version = "unstable-2019-03-28"; 9 + format = "setuptools"; 6 10 7 11 src = fetchFromGitHub { 8 12 owner = "luismartingarcia"; ··· 11 15 sha256 = "13l10jhf4vghanmhh3pn91b2jdciispxy0qadz4n08blp85qn9cm"; 12 16 }; 13 17 18 + postPatch = '' 19 + substituteInPlace setup.py \ 20 + --replace "scripts=['protocol', 'constants.py', 'specs.py']" "scripts=['protocol'], py_modules=['constants', 'specs']" 21 + ''; 22 + 14 23 meta = with lib; { 15 - description = "An ASCII Header Generator for Network Protocols"; 24 + description = "ASCII Header Generator for Network Protocols"; 16 25 homepage = "https://github.com/luismartingarcia/protocol"; 17 - license = licenses.gpl3; 26 + license = licenses.gpl3Plus; 18 27 maintainers = with maintainers; [ teto ]; 19 28 }; 20 29 }
+1 -1
pkgs/top-level/all-packages.nix
··· 34417 34417 34418 34418 pt = callPackage ../applications/misc/pt { }; 34419 34419 34420 - protocol = python3Packages.callPackage ../applications/networking/protocol { }; 34420 + protocol = callPackage ../applications/networking/protocol { }; 34421 34421 34422 34422 pykms = callPackage ../tools/networking/pykms { }; 34423 34423