poetry2nix/tests/eggs/default.nix
adisbladis 226ad319e6 tests: Set allowAliases = false
We don't want to accidentally end up with aliases in the code base
that then breaks nixpkgs when it's eventually incorporated.
2022-05-05 01:50:51 +12:00

9 lines
273 B
Nix

{ lib, poetry2nix, python37, runCommand }:
let
drv = poetry2nix.mkPoetryApplication {
python = python37;
projectDir = ./.;
};
in
assert lib.strings.hasSuffix ".egg" (lib.elemAt drv.passthru.python.pkgs.pyasn1.src.urls 0);
runCommand "egg-test" { } "touch $out"