This repository was archived by the owner on Oct 7, 2022. It is now read-only.

Description
I believe this regression originated from NixOS/nixpkgs@b57c5d4.
@Ericson2314, can you perhaps help me out here?
I am trying with requirements.nix generated through pypi2nix 2.0.4 on NixOS 21.03.
One thing I get is:
error: anonymous function at /nix/store/84lx5jj7xvlxx4dz245w4hk57d6sfwqg-nixpkgs-21.03pre264143.7d71001b796/nixpkgs/pkgs/top-level/python-packages.nix:9:1 called without required argument 'lib'
but ok I've just added lib here like this:
pythonPackages =
import "${toString pkgs.path}/pkgs/top-level/python-packages.nix" {
inherit pkgs;
inherit (pkgs) stdenv lib;
python = pkgs.python3;
};
then I get
error: value is a function while a set was expected
I suppose the reason is that python-packages.nix was refactored and it now returns a function, so this autogenerated requirements.nix should do something different in order to get pythonPackages.