dnschef: migrate to by-name and update Python packaging
Move dnschef to pkgs/by-name and modernize its Python setup: - switch to python3Packages.buildPythonApplication - use explicit python3Packages.* deps - replace sha256 with hash - remove manual wiring from all-packages.nix Brings dnschef in line with current by-name and Python packaging conventions.
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
{
|
||||
buildPythonApplication,
|
||||
python3Packages,
|
||||
fetchFromGitHub,
|
||||
dnslib,
|
||||
lib,
|
||||
}:
|
||||
|
||||
buildPythonApplication {
|
||||
python3Packages.buildPythonApplication {
|
||||
pname = "dnschef";
|
||||
version = "0.4";
|
||||
|
||||
@@ -13,7 +12,7 @@ buildPythonApplication {
|
||||
owner = "iphelix";
|
||||
repo = "dnschef";
|
||||
rev = "a395411ae1f5c262d0b80d06a45a445f696f3243";
|
||||
sha256 = "0ll3hw6w5zhzyqc2p3c9443gcp12sx6ddybg5rjpl01dh3svrk1q";
|
||||
hash = "sha256-OMy89YAtAHplLm/51kzXIlz2BiGJjSsY9h/+wg2Hg1I=";
|
||||
};
|
||||
|
||||
pyproject = false;
|
||||
@@ -21,7 +20,7 @@ buildPythonApplication {
|
||||
install -D ./dnschef.py $out/bin/dnschef
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [ dnslib ];
|
||||
dependencies = [ python3Packages.dnslib ];
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/iphelix/dnschef";
|
||||
@@ -1826,8 +1826,6 @@ with pkgs;
|
||||
gst-plugins-good = gst_all_1.gst-plugins-good.override { gtkSupport = true; };
|
||||
};
|
||||
|
||||
dnschef = python3Packages.callPackage ../tools/networking/dnschef { };
|
||||
|
||||
inherit (ocamlPackages) dot-merlin-reader;
|
||||
|
||||
inherit (ocamlPackages) dune-release;
|
||||
|
||||
Reference in New Issue
Block a user