diff options
author | adisbladis <adisbladis@gmail.com> | 2023-12-12 12:05:34 +1300 |
---|---|---|
committer | adisbladis <adisbladis@gmail.com> | 2023-12-12 12:21:38 +1300 |
commit | 6b9f45ae37450d224a89d072df672551ead5453a (patch) | |
tree | f89a68e6a0eb2ac420c3b5a743528f55dbfbd7f2 /pkgs/build-support | |
parent | 7c71bd52245fc2a272d9f9a4f0cde36a96f7195a (diff) |
python3.pkgs.buildsetupcfg: Remove function from python-packages-base.nix
This function is not, and never have been, used anywhere inside nixpkgs, outside of bootstrapping setupcfg2nix itself. It was added in https://github.com/NixOS/nixpkgs/pull/38778 by @shlevy. It has no out-of-tree users on Github either. External breakage is not expected.
Diffstat (limited to 'pkgs/build-support')
-rw-r--r-- | pkgs/build-support/build-setupcfg/default.nix | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/pkgs/build-support/build-setupcfg/default.nix b/pkgs/build-support/build-setupcfg/default.nix deleted file mode 100644 index 5737989249af4..0000000000000 --- a/pkgs/build-support/build-setupcfg/default.nix +++ /dev/null @@ -1,26 +0,0 @@ -# Build a python package from info made available by setupcfg2nix. -# -# * src: The source of the package. -# * info: The package information generated by setupcfg2nix. -# * meta: Standard nixpkgs metadata. -# * application: Whether this package is a python library or an -# application which happens to be written in python. -# * doCheck: Whether to run the test suites. -lib: pythonPackages: -{ src, info, meta ? {}, application ? false, doCheck ? true}: let - build = if application - then pythonPackages.buildPythonApplication - else pythonPackages.buildPythonPackage; -in build { - inherit (info) pname version; - - inherit src meta doCheck; - - nativeBuildInputs = map (p: pythonPackages.${p}) ( - (info.setup_requires or []) ++ - (lib.optionals doCheck (info.tests_require or [])) - ); - - propagatedBuildInputs = map (p: pythonPackages.${p}) - (info.install_requires or []); -} |