2023-09-28 20:19:40 +03:00
|
|
|
{
|
|
|
|
pkgs ? import <nixpkgs> {},
|
|
|
|
lib ? import <nixpkgs/lib>,
|
2023-12-10 08:20:04 +03:00
|
|
|
dream2nix ? import ../../../. inputs,
|
|
|
|
inputs ? (import ../../../.).inputs,
|
2023-09-28 20:19:40 +03:00
|
|
|
}: 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 = {
|
2023-10-01 16:43:56 +03:00
|
|
|
dream2nix = dream2nix // {inherit inputs;};
|
2023-09-28 20:19:40 +03:00
|
|
|
packageSets.nixpkgs = pkgs;
|
|
|
|
};
|
|
|
|
})
|
|
|
|
.config;
|
|
|
|
in {
|
|
|
|
test_pdm = let
|
|
|
|
config = eval {
|
2023-12-10 08:20:04 +03:00
|
|
|
pdm.lockfile = ./../test_python-pdm-lib/fixtures/pdm-example1.lock;
|
|
|
|
pdm.pyproject = ./../test_python-pdm-lib/fixtures/pyproject.toml;
|
2023-09-28 20:19:40 +03:00
|
|
|
};
|
|
|
|
in {
|
2023-10-23 03:28:57 +03:00
|
|
|
expr = (lib.head (lib.attrValues config.groups.default.packages.certifi)).public ? drvPath;
|
2023-09-28 20:19:40 +03:00
|
|
|
expected = true;
|
|
|
|
};
|
|
|
|
}
|