dream2nix/tests/nix-unit/test_python-pdm/default.nix

30 lines
746 B
Nix
Raw Normal View History

2023-09-28 20:19:40 +03:00
{
pkgs ? import <nixpkgs> {},
lib ? import <nixpkgs/lib>,
dream2nix ? import ../../../. inputs,
inputs ? (import ../../../.).inputs,
2023-09-28 20:19:40 +03:00
}: let
eval = module:
(lib.evalModules {
modules = [
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 {
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 {
expr = (lib.head (lib.attrValues config.groups.default.packages.certifi)).public ? drvPath;
2023-09-28 20:19:40 +03:00
expected = true;
};
}