Skip to content

Commit

Permalink
fix: poetry wouldn't work when using a tag
Browse files Browse the repository at this point in the history
 fixes #160
  • Loading branch information
Matthieu Coudron committed Sep 8, 2020
1 parent ab40bbd commit 6b972b6
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions mk-poetry-dep.nix
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,13 @@ pythonPackages.callPackage
if isGit then (
builtins.fetchGit {
inherit (source) url;
rev = source.reference;
ref = sourceSpec.branch or sourceSpec.rev or sourceSpec.tag or "HEAD";
}
} // (
if source.reference != null then {
rev = source.reference;
} else {
ref = sourceSpec.branch or sourceSpec.rev or sourceSpec.tag or "HEAD";
}
)
) else if isLocal then (poetryLib.cleanPythonSources { src = localDepPath; }) else fetchFromPypi {
pname = name;
inherit (fileInfo) file hash kind;
Expand Down

0 comments on commit 6b972b6

Please sign in to comment.