let
  pkgs = import <nixpkgs> {};
in
 pkgs.poetry2nix.mkPoetryApplication {
    projectDir = ../.;
    overrides = pkgs.poetry2nix.overrides.withDefaults (self: super: {
      pytest = super.pytest.overrideAttrs (old: {
        postPatch = old.postPatch or "" + ''
          sed -i '/\[metadata\]/aversion = ${old.version}' setup.cfg
          echo "VERSION"
          grep version setup.cfg
        '';
      });
    });
  }

let
  pkgs = import <nixpkgs> {};
in
 pkgs.poetry2nix.mkPoetryApplication {
    projectDir = ../.;
  }

Remove pytest override in nix environment.
Remove pytest override in nix environment.

The nix override to fix the pytest version is no longer needed as of nix
21.05.   We can finally drop it.
