From 2d839f48efe00f8a42b2b99a42e4c1378caa238a Mon Sep 17 00:00:00 2001 From: Grayson Tinker Date: Mon, 8 Jun 2026 18:01:57 -0700 Subject: [PATCH] apc-temp-fetch: migrate to by-name --- .../ap/apc-temp-fetch/package.nix} | 14 ++++++-------- pkgs/top-level/all-packages.nix | 2 -- 2 files changed, 6 insertions(+), 10 deletions(-) rename pkgs/{tools/networking/apc-temp-fetch/default.nix => by-name/ap/apc-temp-fetch/package.nix} (73%) diff --git a/pkgs/tools/networking/apc-temp-fetch/default.nix b/pkgs/by-name/ap/apc-temp-fetch/package.nix similarity index 73% rename from pkgs/tools/networking/apc-temp-fetch/default.nix rename to pkgs/by-name/ap/apc-temp-fetch/package.nix index 887421233df2..a1b4d2a48e5d 100644 --- a/pkgs/tools/networking/apc-temp-fetch/default.nix +++ b/pkgs/by-name/ap/apc-temp-fetch/package.nix @@ -1,27 +1,25 @@ { lib, - buildPythonApplication, + python3Packages, fetchPypi, - requests, - setuptools, }: -buildPythonApplication rec { +python3Packages.buildPythonApplication (finalAttrs: { pname = "apc-temp-fetch"; version = "0.0.2"; pyproject = true; src = fetchPypi { pname = "APC-Temp-fetch"; - inherit version; + inherit (finalAttrs) version; hash = "sha256-lXGj/xrOkdMMYvuyVVSCojjQlzISFUT14VTn//iOARo="; }; - build-system = [ + build-system = with python3Packages; [ setuptools ]; - dependencies = [ + dependencies = with python3Packages; [ requests ]; @@ -35,4 +33,4 @@ buildPythonApplication rec { license = lib.licenses.asl20; maintainers = [ ]; }; -} +}) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 56834e3bd07d..6c0c1ace4016 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1810,8 +1810,6 @@ with pkgs; util-linux = util-linuxMinimal; }; - apc-temp-fetch = with python3.pkgs; callPackage ../tools/networking/apc-temp-fetch { }; - asciidoc-full = asciidoc.override { enableStandardFeatures = true; };