This repository was archived by the owner on Oct 7, 2022. It is now read-only.
This repository was archived by the owner on Oct 7, 2022. It is now read-only.
Wrong src generated for a git dependency #95
Closed
Description
I ran
pypi2nix -V "2.7" -r requirements.txt
with this as requirements.txt
.
git+https://github.com/lepture/flask-oauthlib.git@33f155bb86c5482b638b7383fb360d02b11a99f1
Because I need a version at a specific commit that was never released. pypi2nix
outputs the "correct" version 0.7.0
into requirements_frozen.txt
- this commit still says 0.7.0 but the code is newer than the actual 0.7.0 release. The problem however is in requirements_generated.nix
. This is the offending derivation:
"Flask-OAuthlib" = python.mkDerivation {
name = "Flask-OAuthlib-0.7.0";
src = pkgs.fetchurl {
url = "https://pypi.python.org/packages/c4/33/6c780315d45f33bf094031330126686221f101f834f5f0035fddf5ad1aa7/Flask-OAuthlib-0.7.0.tar.gz";
sha256 = "0389c057d7d3e5ea5f3335fd6c5c0327bc0828f534a165323836d0ecc66bdeb9";
};
doCheck = commonDoCheck;
buildInputs = commonBuildInputs;
propagatedBuildInputs = [
self."Flask"
self."oauthlib"
];
meta = with pkgs.stdenv.lib; {
homepage = "";
license = licenses.bsdOriginal;
description = "OAuthlib for Flask";
};
};
src
is pointing at pypi
and picking up the actual 0.7.0
which is not the version in requirements.txt
.
I got around this by providing a git source in the overrides but this has to be kept in sync manually so I'd really rather the tool does that for me.
Slightly offtopic: this is really the only override I needed for 2600 lines of generated nix code - you built an awesome tool!