summary refs log tree commit diff
diff options
context:
space:
mode:
authorfigsoda <figsoda@pm.me>2023-06-02 14:16:52 -0400
committerFrederik Rietdijk <freddyrietdijk@fridh.nl>2023-06-03 16:44:43 +0200
commit2bfb2f045a966f63a918d03afa61af3dbc0c552b (patch)
treeef83001507281c7bf214bbc3d7f43ddae6328976
parent2f181d6f062e6bd0b794e7978a1ec56188be95bb (diff)
downloadnixpkgs-2bfb2f045a966f63a918d03afa61af3dbc0c552b.tar
nixpkgs-2bfb2f045a966f63a918d03afa61af3dbc0c552b.tar.gz
nixpkgs-2bfb2f045a966f63a918d03afa61af3dbc0c552b.tar.bz2
nixpkgs-2bfb2f045a966f63a918d03afa61af3dbc0c552b.tar.lz
nixpkgs-2bfb2f045a966f63a918d03afa61af3dbc0c552b.tar.xz
nixpkgs-2bfb2f045a966f63a918d03afa61af3dbc0c552b.tar.zst
nixpkgs-2bfb2f045a966f63a918d03afa61af3dbc0c552b.zip
pypi2nix: remove
It has been broken since 2021 and upstream has been archived
-rw-r--r--doc/languages-frameworks/python.section.md4
-rw-r--r--pkgs/development/tools/pypi2nix/default.nix26
-rw-r--r--pkgs/top-level/aliases.nix1
-rw-r--r--pkgs/top-level/all-packages.nix2
4 files changed, 1 insertions, 32 deletions
diff --git a/doc/languages-frameworks/python.section.md b/doc/languages-frameworks/python.section.md
index 9cd80b93854..10f5e3938ce 100644
--- a/doc/languages-frameworks/python.section.md
+++ b/doc/languages-frameworks/python.section.md
@@ -1514,10 +1514,6 @@ Note: There is a boolean value `lib.inNixShell` set to `true` if nix-shell is in
 Packages inside nixpkgs are written by hand. However many tools exist in
 community to help save time. No tool is preferred at the moment.
 
-- [pypi2nix](https://github.com/nix-community/pypi2nix): Generate Nix
-  expressions for your Python project. Note that [sharing derivations from
-  pypi2nix with nixpkgs is possible but not
-  encouraged](https://github.com/nix-community/pypi2nix/issues/222#issuecomment-443497376).
 - [nixpkgs-pytools](https://github.com/nix-community/nixpkgs-pytools)
 - [poetry2nix](https://github.com/nix-community/poetry2nix)
 
diff --git a/pkgs/development/tools/pypi2nix/default.nix b/pkgs/development/tools/pypi2nix/default.nix
deleted file mode 100644
index 63e98038ee6..00000000000
--- a/pkgs/development/tools/pypi2nix/default.nix
+++ /dev/null
@@ -1,26 +0,0 @@
-{ python3
-, fetchPypi
-}:
-with python3;
-
-pkgs.buildPythonApplication rec {
-  pname = "pypi2nix";
-  version = "2.0.4";
-  src = fetchPypi {
-    inherit pname version;
-    sha256 = "0y4zkkcijz5hchd8j6a106ysrg1dnad7dzdgnmz38rgm6zbrky0d";
-  };
-  propagatedBuildInputs = with pkgs; [
-    attrs
-    click
-    jinja2
-    nix-prefetch-github
-    packaging
-    parsley
-    setuptools
-    toml
-    jsonschema
-  ];
-  # https://github.com/nix-community/pypi2nix/issues/460
-  meta.broken = true;
-}
diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix
index 67538ab89e2..7814932b07c 100644
--- a/pkgs/top-level/aliases.nix
+++ b/pkgs/top-level/aliases.nix
@@ -1389,6 +1389,7 @@ mapAliases ({
   pyload = throw "pyload has been removed from nixpkgs, as it was unmaintained"; # Added 2021-03-21
   pynagsystemd = throw "pynagsystemd was removed as it was unmaintained and incompatible with recent systemd versions. Instead use its fork check_systemd"; # Added 2020-10-24
   pyo3-pack = maturin;
+  pypi2nix = throw "pypi2nix has been removed due to being unmaintained";
   pypolicyd-spf = spf-engine; # Added 2022-10-09
   pyrex = throw "pyrex has been removed from nixpkgs as the project is still stuck on python2"; # Added 2022-01-12
   pyrex095 = throw "pyrex has been removed from nixpkgs as the project is still stuck on python2"; # Added 2022-01-12
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 19266225206..c841acbd9ae 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -17290,8 +17290,6 @@ with pkgs;
 
   check-jsonschema = callPackage ../development/tools/check-jsonschema { };
 
-  pypi2nix = callPackage ../development/tools/pypi2nix { };
-
   pypi-mirror = callPackage ../development/tools/pypi-mirror { };
 
   setupcfg2nix = python3Packages.callPackage ../development/tools/setupcfg2nix { };