-
-
Save das-g/03dcdd22e95d8453f0f7c0841ca921fb to your computer and use it in GitHub Desktop.
nixpkgs/nixos/tests/pipenv/in-nix-shell.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let | |
pkgs = import ../../..{}; | |
pipenvEnv = pkgs.stdenv.mkDerivation { | |
name = "foo"; | |
buildInputs = [ pkgs.pipenv ]; | |
buildCommand = "touch $out"; | |
}; | |
in | |
import ../make-test-python.nix { | |
machine = | |
{ config, pkgs, ... }: | |
{ | |
environment.etc."/anything".text = "${pipenvEnv.drvPath} ${pkgs.pipenv}"; | |
}; | |
testScript = | |
'' | |
machine.start() | |
machine.wait_for_unit("default.target") | |
machine.succeed( | |
"nix-shell ${pipenvEnv.drvPath} --option substituters \"\" --run 'pipenv run pip --version'" | |
) | |
''; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment