mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-21 04:49:01 +02:00
3f2deb9e98
Mostly nix-init with some manual fixups. withPlugins implementation copied from Poetry.
51 lines
1 KiB
Nix
51 lines
1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, unstableGitUpdater
|
|
, poetry-core
|
|
, nixops
|
|
, digital-ocean
|
|
}:
|
|
|
|
buildPythonPackage {
|
|
pname = "nixops-digitalocean";
|
|
version = "unstable-2022-08-14";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nix-community";
|
|
repo = "nixops-digitalocean";
|
|
rev = "e977b7f11e264a6a2bff2dcbc7b94c6a97b92fff";
|
|
hash = "sha256-aJtShvdqjAiCK5oZL0GR5cleDb4s1pJkO6UPKGd4Dgg=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace poetry.masonry.api poetry.core.masonry.api \
|
|
--replace "poetry>=" "poetry-core>="
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
buildInputs = [
|
|
nixops
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
digital-ocean
|
|
];
|
|
|
|
pythonImportsCheck = [ "nixops_digitalocean" ];
|
|
|
|
passthru.updateScript = unstableGitUpdater {};
|
|
|
|
meta = with lib; {
|
|
description = "NixOps Digitalocean plugin";
|
|
homepage = "https://github.com/nix-community/nixops-digitalocean";
|
|
license = licenses.lgpl3Only;
|
|
maintainers = with maintainers; [ kiwi ];
|
|
};
|
|
}
|