nix-community / pypi2nix

Abandoned! Generate Nix expressions for Python packages
194 stars 47 forks source link

Error installing pypi2nix #478

Open FedX-sudo opened 2 years ago

FedX-sudo commented 2 years ago

System:

Issue:

When I go to install pypi2nix by adding the suggested configuration to home.nix like this:

{pkgs, config, lib, ...}:
let
  pypi2nix = import (pkgs.fetchgit {
    url = "https://github.com/nix-community/pypi2nix";
    # adjust rev and sha256 to desired version
    rev = "v2.0.1";
    sha256 = "sha256:0mxh3x8bck3axdfi9vh9mz1m3zvmzqkcgy6gxp8f9hhs6qg5146y";
  }) {};

in 
{
  home.packages = [ pypi2nix ]; 
}

Then after running home-manager switch I get the following error:

error: attribute 'lib' missing

at /nix/store/syg1rgl1l8baj5xh59xw3xqi0s9bh3fd-pypi2nix/requirements.nix:15:12:

14|   inherit (pkgs) makeWrapper;
15|   inherit (pkgs.stdenv.lib) fix' extends inNixShell;
|            ^
16|
(use '--show-trace' to show detailed location information)

Assuming this was my fault, I attempted to install with nix-env -if https://github.com/nix-community/pypi2nix/tarball/master and got the exact same error. I assume this is an issue with running NixOS unstable, and would love to help solve the issue if possible!