dream2nix/tests/nix-unit/test_python-pdm/default.nix
2023-09-29 01:32:03 +01:00

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;
};
}