pypi2nix icon indicating copy to clipboard operation
pypi2nix copied to clipboard

Adjust lib and pythonPackages to upstream nixpkgs changes

Open hlolli opened this issue 4 years ago • 4 comments
trafficstars

Importing python-packages from top-level is now curried 1 more level, to which I'm failing to understand and reproducing in nix repl, https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/interpreters/python/default.nix#L26

Accessing lib from pkgs.stdenv is now throwing warning so I'm changing the template too.

hlolli avatar Feb 12 '21 20:02 hlolli

There are still two tests failing:

  1. https://bitbucket.org/tarek/flake8 doesn't exist anymore

  2. pypi2nix.requirements.IncompatibleRequirements: Cannot combine requirements with different urls <bound method UrlRequirement.url of UrlRequirement(_name='req', _url='https://url.test', _extras=set(), _environment_markers=None, _logger=<pypi2nix.logger.StreamLogger object at 0x7f0a6ea8feb0>)> and <bound method UrlRequirement.url of UrlRequirement(_name='req', _url='https://url.test', _extras=set(), _environment_markers=None, _logger=<pypi2nix.logger.StreamLogger object at 0x7f0a6ea8feb0>)>

https://url.test seems to my eyes to be equal to https://url.test will look into this one...

hlolli avatar Feb 12 '21 23:02 hlolli

You will need to fork this repo since the tests fail and I cannot merge the tests unless they are green. sorry

seppeljordan avatar Feb 13 '21 11:02 seppeljordan

You will need to fork this repo since the tests fail and I cannot merge the tests unless they are green. sorry

That's what I meant, I'm looking into these test failure. Will update once done.

hlolli avatar Feb 13 '21 21:02 hlolli

still significant

have this error on installing

{ pkgs ? import <nixpkgs-master> {} }:

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

pkgs.mkShell {
  buildInputs = with pkgs; [
    pypi2nix
  ];
}
error: attribute 'lib' missing, at /nix/store/syg1rgl1l8baj5xh59xw3xqi0s9bh3fd-pypi2nix/requirements.nix:15:12
(use '--show-trace' to show detailed location information)

srghma avatar Feb 15 '22 10:02 srghma