summary refs log tree commit diff
path: root/pkgs/applications/networking/cluster/nixops/plugins/nixops-encrypted-links.nix
diff options
context:
space:
mode:
authorK900 <me@0upti.me>2023-10-28 11:40:04 +0300
committerGitHub <noreply@github.com>2023-10-28 11:40:04 +0300
commit3406dd96b3aa82d67c1cfceb6e47322c6abb0125 (patch)
treeb42f1ad1ac4d072ccea9de7a568be8308c9007e1 /pkgs/applications/networking/cluster/nixops/plugins/nixops-encrypted-links.nix
parentfa9ab56301568aa470563d7b60e2ab7fc886546a (diff)
parentb6958acdab93bca8453b208a3fdf093737519b3a (diff)
downloadnixpkgs-3406dd96b3aa82d67c1cfceb6e47322c6abb0125.tar
nixpkgs-3406dd96b3aa82d67c1cfceb6e47322c6abb0125.tar.gz
nixpkgs-3406dd96b3aa82d67c1cfceb6e47322c6abb0125.tar.bz2
nixpkgs-3406dd96b3aa82d67c1cfceb6e47322c6abb0125.tar.lz
nixpkgs-3406dd96b3aa82d67c1cfceb6e47322c6abb0125.tar.xz
nixpkgs-3406dd96b3aa82d67c1cfceb6e47322c6abb0125.tar.zst
nixpkgs-3406dd96b3aa82d67c1cfceb6e47322c6abb0125.zip
Merge pull request #263308 from K900/rip-poetry2nix
treewide: drop poetry2nix
Diffstat (limited to 'pkgs/applications/networking/cluster/nixops/plugins/nixops-encrypted-links.nix')
-rw-r--r--pkgs/applications/networking/cluster/nixops/plugins/nixops-encrypted-links.nix45
1 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/applications/networking/cluster/nixops/plugins/nixops-encrypted-links.nix b/pkgs/applications/networking/cluster/nixops/plugins/nixops-encrypted-links.nix
new file mode 100644
index 00000000000..49ffc319a05
--- /dev/null
+++ b/pkgs/applications/networking/cluster/nixops/plugins/nixops-encrypted-links.nix
@@ -0,0 +1,45 @@
+{ lib
+, buildPythonPackage
+, fetchFromGitHub
+, unstableGitUpdater
+, poetry-core
+, nixops
+}:
+
+buildPythonPackage {
+  pname = "nixops-encrypted-links";
+  version = "unstable-2021-02-16";
+  pyproject = true;
+
+  src = fetchFromGitHub {
+    owner = "nix-community";
+    repo = "nixops-encrypted-links";
+    rev = "e2f196fce15fcfb00d18c055e1ac53aec33b8fb1";
+    hash = "sha256-1TTbARyCfrLxF6SVNkmIKNNcLS9FVW22d9w0VRrH1os=";
+  };
+
+  postPatch = ''
+    substituteInPlace pyproject.toml \
+    --replace poetry.masonry.api poetry.core.masonry.api \
+    --replace "poetry>=" "poetry-core>="
+  '';
+
+  nativeBuildInputs = [
+    poetry-core
+  ];
+
+  buildInputs = [
+    nixops
+  ];
+
+  pythonImportsCheck = [ "nixops_encrypted_links" ];
+
+  passthru.updateScript = unstableGitUpdater {};
+
+  meta = with lib; {
+    description = "EncryptedLinksTo from Nixops 1 module port";
+    homepage = "https://github.com/nix-community/nixops-encrypted-links";
+    license = licenses.mit;
+    maintainers = with maintainers; [ adisbladis ];
+  };
+}