2023-09-28 20:19:40 +03:00
|
|
|
{
|
|
|
|
pkgs ? import <nixpkgs> {},
|
|
|
|
lib ? import <nixpkgs/lib>,
|
|
|
|
dream2nix ? (import (../../../modules + "/default.nix")),
|
|
|
|
}: let
|
|
|
|
eval = module:
|
|
|
|
(lib.evalModules {
|
|
|
|
modules = [
|
2023-09-28 21:15:42 +03:00
|
|
|
dream2nix.modules.dream2nix.WIP-python-pdm
|
2023-09-28 20:19:40 +03:00
|
|
|
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 {
|
2023-09-29 03:30:08 +03:00
|
|
|
expr = config.groups.default.public.certifi ? drvPath;
|
2023-09-28 20:19:40 +03:00
|
|
|
expected = true;
|
|
|
|
};
|
|
|
|
}
|