nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 48 lines 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 unstableGitUpdater, 6 poetry-core, 7 nixops, 8}: 9 10buildPythonPackage { 11 pname = "nixops-vbox"; 12 version = "1.0.0-unstable-2023-08-10"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "nix-community"; 17 repo = "nixops-vbox"; 18 rev = "baa5f09c9ae9aaf639c95192460ab5dcbe83a883"; 19 hash = "sha256-QrxherQO1t0VpYjJSEbntUWVD6GW4MtVHiKINpzHA1M="; 20 }; 21 22 postPatch = '' 23 substituteInPlace pyproject.toml \ 24 --replace poetry.masonry.api poetry.core.masonry.api \ 25 --replace "poetry>=" "poetry-core>=" 26 ''; 27 28 nativeBuildInputs = [ 29 poetry-core 30 ]; 31 32 buildInputs = [ 33 nixops 34 ]; 35 36 pythonImportsCheck = [ "nixopsvbox" ]; 37 38 passthru.updateScript = unstableGitUpdater { 39 tagPrefix = "v"; 40 }; 41 42 meta = with lib; { 43 description = "NixOps plugin for VirtualBox VMs"; 44 homepage = "https://github.com/nix-community/nixops-vbox"; 45 license = licenses.lgpl3Only; 46 maintainers = with maintainers; [ aminechikhaoui ]; 47 }; 48}