poetry2nix/tests/default.nix

51 lines
2.4 KiB
Nix
Raw Normal View History

{ pkgs ? import <nixpkgs> {} }:
let
poetry = pkgs.callPackage ../pkgs/poetry { python = pkgs.python3; inherit poetry2nix; };
poetry2nix = import ./.. { inherit pkgs; inherit poetry; };
pep425 = pkgs.callPackage ../pep425.nix {};
pep425Python37 = pkgs.callPackage ../pep425.nix { python = pkgs.python37; };
pep425OSX = pkgs.callPackage ../pep425.nix { isLinux = false; };
skipTests = builtins.filter (t: builtins.typeOf t != "list") (builtins.split "," (builtins.getEnv "SKIP_TESTS"));
in
builtins.removeAttrs
{
trivial = pkgs.callPackage ./trivial { inherit poetry2nix; };
override = pkgs.callPackage ./override-support { inherit poetry2nix; };
override-default = pkgs.callPackage ./override-default-support { inherit poetry2nix; };
top-packages-1 = pkgs.callPackage ./common-pkgs-1 { inherit poetry2nix; };
top-packages-2 = pkgs.callPackage ./common-pkgs-2 { inherit poetry2nix; };
pep425 = pkgs.callPackage ./pep425 { inherit pep425; inherit pep425OSX; inherit pep425Python37; };
env = pkgs.callPackage ./env { inherit poetry2nix; };
git-deps = pkgs.callPackage ./git-deps { inherit poetry2nix; };
git-deps-pinned = pkgs.callPackage ./git-deps-pinned { inherit poetry2nix; };
cli = poetry2nix;
path-deps = pkgs.callPackage ./path-deps { inherit poetry2nix; };
path-deps-level2 = pkgs.callPackage ./path-deps-level2 { inherit poetry2nix; };
operators = pkgs.callPackage ./operators { inherit poetry2nix; };
preferWheel = pkgs.callPackage ./prefer-wheel { inherit poetry2nix; };
closure-size = pkgs.callPackage ./closure-size {
inherit poetry2nix poetry;
inherit (pkgs) postgresql;
};
2020-01-18 20:29:07 +00:00
pyqt5 = pkgs.callPackage ./pyqt5 { inherit poetry2nix; };
eggs = pkgs.callPackage ./eggs { inherit poetry2nix; };
extras = pkgs.callPackage ./extras { inherit poetry2nix; };
2020-01-18 20:29:07 +00:00
# Test building poetry
inherit poetry;
poetry-python2 = poetry.override { python = pkgs.python2; };
2020-01-18 20:29:07 +00:00
# And also test with pypy
poetry-pypy = poetry.override { python = pkgs.pypy; };
poetry-pypy3 = poetry.override { python = pkgs.pypy3; };
2020-01-07 23:40:40 +00:00
inherit (poetry2nix) doc;
2020-01-01 18:01:04 +00:00
# manylinux requires nixpkgs with https://github.com/NixOS/nixpkgs/pull/75763
# Once this is available in 19.09 and unstable we can re-enable the manylinux test
manylinux = pkgs.callPackage ./manylinux { inherit poetry2nix; };
} skipTests