Skip to content

Commit

Permalink
fetchPypi: move to top level
Browse files Browse the repository at this point in the history
fetchPypi doesn't use python under the hood and doesn't need to be tied
to a specific version of python. Moving it to top level makes it more
consistent with other fetchers and makes code generation easier.
  • Loading branch information
figsoda authored and FRidh committed Jan 21, 2023
1 parent a72e215 commit 3290828
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ let
# See build-setupcfg/default.nix for documentation.
buildSetupcfg = import ../../../build-support/build-setupcfg self;

fetchPypi = callPackage ./fetchpypi.nix { };

# Check whether a derivation provides a Python module.
hasPythonModule = drv: drv?pythonModule && drv.pythonModule == python;

Expand Down Expand Up @@ -89,7 +87,7 @@ in {
inherit lib pkgs stdenv;
inherit (python.passthru) isPy27 isPy37 isPy38 isPy39 isPy310 isPy311 isPy3k isPyPy pythonAtLeast pythonOlder;
inherit buildPythonPackage buildPythonApplication;
inherit fetchPypi;
inherit (pkgs) fetchPypi;
inherit hasPythonModule requiredPythonModules makePythonPath disabled disabledIf;
inherit toPythonModule toPythonApplication;
inherit buildSetupcfg;
Expand Down
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -935,6 +935,8 @@ with pkgs;

fetchgx = callPackage ../build-support/fetchgx { };

fetchPypi = callPackage ../build-support/fetchpypi { };

resolveMirrorURLs = {url}: fetchurl {
showURLs = true;
inherit url;
Expand Down

0 comments on commit 3290828

Please sign in to comment.