commit
0ff9f5e1f6
@ -1,33 +0,0 @@ |
||||
{ lib, poetry2nix, python, fetchFromGitHub, runtimeShell }: |
||||
|
||||
|
||||
poetry2nix.mkPoetryApplication { |
||||
|
||||
inherit python; |
||||
|
||||
pyproject = ./pyproject.toml; |
||||
poetrylock = ./poetry.lock; |
||||
|
||||
src = fetchFromGitHub (lib.importJSON ./src.json); |
||||
|
||||
# "Vendor" dependencies (for build-system support) |
||||
postPatch = '' |
||||
for path in ''${PYTHONPATH//:/ }; do |
||||
echo "sys.path.insert(0, \"$path\")" >> poetry/__init__.py |
||||
done |
||||
''; |
||||
|
||||
# Propagating dependencies leads to issues downstream |
||||
# We've already patched poetry to prefer "vendored" dependencies |
||||
postFixup = '' |
||||
rm $out/nix-support/propagated-build-inputs |
||||
''; |
||||
|
||||
# Fails because of impurities (network, git etc etc) |
||||
doCheck = false; |
||||
|
||||
meta = with lib; { |
||||
platforms = platforms.all; |
||||
maintainers = with maintainers; [ adisbladis jakewaksbaum ]; |
||||
}; |
||||
} |
@ -1,6 +0,0 @@ |
||||
{ |
||||
"owner": "python-poetry", |
||||
"repo": "poetry", |
||||
"rev": "754dbf80dc022b89974288cff10b40ab2f1c2697", |
||||
"sha256": "1khjx598n222fhzvsxsc6cq4m2i8rss1k1whxw9k03kxi4dx6x5g" |
||||
} |
@ -0,0 +1,41 @@ |
||||
{ lib, poetry2nix, python, fetchFromGitHub }: |
||||
|
||||
|
||||
poetry2nix.mkPoetryApplication { |
||||
|
||||
inherit python; |
||||
|
||||
projectDir = ./.; |
||||
|
||||
src = fetchFromGitHub (lib.importJSON ./src.json); |
||||
|
||||
# "Vendor" dependencies (for build-system support) |
||||
postPatch = '' |
||||
for path in ''${PYTHONPATH//:/ }; do echo $path; done | uniq | while read path; do |
||||
echo "sys.path.insert(0, \"$path\")" >> poetry/__init__.py |
||||
done |
||||
''; |
||||
|
||||
postInstall = '' |
||||
mkdir -p "$out/share/bash-completion/completions" |
||||
"$out/bin/poetry" completions bash > "$out/share/bash-completion/completions/poetry" |
||||
mkdir -p "$out/share/zsh/vendor-completions" |
||||
"$out/bin/poetry" completions zsh > "$out/share/zsh/vendor-completions/_poetry" |
||||
mkdir -p "$out/share/fish/vendor_completions.d" |
||||
"$out/bin/poetry" completions fish > "$out/share/fish/vendor_completions.d/poetry.fish" |
||||
''; |
||||
|
||||
# Propagating dependencies leads to issues downstream |
||||
# We've already patched poetry to prefer "vendored" dependencies |
||||
postFixup = '' |
||||
rm $out/nix-support/propagated-build-inputs |
||||
''; |
||||
|
||||
# Fails because of impurities (network, git etc etc) |
||||
doCheck = false; |
||||
|
||||
meta = with lib; { |
||||
inherit (python.meta) platforms; |
||||
maintainers = with maintainers; [ adisbladis jakewaksbaum ]; |
||||
}; |
||||
} |
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,6 @@ |
||||
{ |
||||
"owner": "python-poetry", |
||||
"repo": "poetry", |
||||
"rev": "6f9d6b0e1b7b1d3a7d7b2ca3478ad2cb0a7188e2", |
||||
"sha256": "1g9kcp3zlfk3f063hz1av9jj7s60pwxzqgj59w21sd5fx7yzdsaf" |
||||
} |
Loading…
Reference in new issue