mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-12-23 14:31:55 +03:00
31 lines
783 B
Nix
31 lines
783 B
Nix
{
|
|
pkgs ? import <nixpkgs> {},
|
|
lib ? import <nixpkgs/lib>,
|
|
dream2nix ? (import (../../../modules + "/default.nix")),
|
|
}: let
|
|
eval = module:
|
|
(lib.evalModules {
|
|
modules = [
|
|
dream2nix.modules.dream2nix.WIP-python-pdm
|
|
module
|
|
];
|
|
specialArgs = {
|
|
inherit dream2nix;
|
|
packageSets.nixpkgs = pkgs;
|
|
};
|
|
})
|
|
.config;
|
|
in {
|
|
test_pdm = let
|
|
config = eval {
|
|
# TODO: create fixtures
|
|
pdm.lockfile = ./../../../examples/dream2nix-repo-flake-pdm/pdm.lock;
|
|
pdm.pyproject = ./../../../examples/dream2nix-repo-flake-pdm/pyproject.toml;
|
|
# groups.my-group.packages.hello = {...}: fixtures.basic-derivation;
|
|
};
|
|
in {
|
|
expr = config.groups.default.public.certifi ? drvPath;
|
|
expected = true;
|
|
};
|
|
}
|