mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-04 08:41:42 -05:00
tests: Set allowAliases = false
We don't want to accidentally end up with aliases in the code base that then breaks nixpkgs when it's eventually incorporated.
This commit is contained in:
parent
6ed6894f58
commit
226ad319e6
2 changed files with 8 additions and 5 deletions
|
@ -2,6 +2,9 @@ let
|
|||
sources = import ../nix/sources.nix;
|
||||
in
|
||||
{ pkgs ? import sources.nixpkgs {
|
||||
config = {
|
||||
allowAliases = false;
|
||||
};
|
||||
overlays = [
|
||||
(import ../overlay.nix)
|
||||
];
|
||||
|
@ -11,9 +14,9 @@ let
|
|||
poetry = pkgs.callPackage ../pkgs/poetry { python = pkgs.python3; inherit poetry2nix; };
|
||||
poetry2nix = import ./.. { inherit pkgs; inherit poetry; };
|
||||
poetryLib = import ../lib.nix { inherit pkgs; lib = pkgs.lib; stdenv = pkgs.stdenv; };
|
||||
pep425 = pkgs.callPackage ../pep425.nix { inherit poetryLib; };
|
||||
pep425 = pkgs.callPackage ../pep425.nix { inherit poetryLib; python = pkgs.python3; };
|
||||
pep425Python37 = pkgs.callPackage ../pep425.nix { inherit poetryLib; python = pkgs.python37; };
|
||||
pep425OSX = pkgs.callPackage ../pep425.nix { inherit poetryLib; isLinux = false; };
|
||||
pep425OSX = pkgs.callPackage ../pep425.nix { inherit poetryLib; isLinux = false; python = pkgs.python3; };
|
||||
skipTests = builtins.filter (t: builtins.typeOf t != "list") (builtins.split "," (builtins.getEnv "SKIP_TESTS"));
|
||||
callTest = test: attrs: pkgs.callPackage test ({ inherit poetry2nix; } // attrs);
|
||||
|
||||
|
@ -84,7 +87,7 @@ builtins.removeAttrs
|
|||
trivial-cross = skipOSX (callTest ./trivial-cross { });
|
||||
|
||||
# Inherit test cases from nixpkgs
|
||||
inherit (pkgs) nixops nixopsUnstable;
|
||||
inherit (pkgs) nixops nixops_unstable;
|
||||
|
||||
# Rmfuse fails on darwin because osxfuse only implements fuse api v2
|
||||
rmfuse = skipOSX pkgs.rmfuse;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ lib, poetry2nix, python37, runCommandNoCC }:
|
||||
{ lib, poetry2nix, python37, runCommand }:
|
||||
let
|
||||
drv = poetry2nix.mkPoetryApplication {
|
||||
python = python37;
|
||||
|
@ -6,4 +6,4 @@ let
|
|||
};
|
||||
in
|
||||
assert lib.strings.hasSuffix ".egg" (lib.elemAt drv.passthru.python.pkgs.pyasn1.src.urls 0);
|
||||
runCommandNoCC "egg-test" { } "touch $out"
|
||||
runCommand "egg-test" { } "touch $out"
|
||||
|
|
Loading…
Add table
Reference in a new issue