You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
with (import (builtins.fetchGit {
name = "my-project";
url = https://github.com/nixos/nixpkgs/;
ref = "refs/heads/master";
rev = "6f545410b593a0d1b78806aa878f95ee3f3d4a4a";
}) {});
let src = builtins.fetchGit {
name = "poetry-nix";
url = https://github.com/max-arrival/poetry2nix/;
ref = "refs/heads/uvloop-overrides";
rev = "e5022aadc818aaabfded6eb996fa2d95a6aa6e68";
}; in with import "${src.outPath}/overlay.nix" pkgs pkgs;
let
pythonEnv = poetry2nix.mkPoetryEnv {
poetrylock = ./poetry.lock;
};
in
mkShell {
name = "my-project";
buildInputs = [
python37Full
python37Packages.virtualenv
pythonEnv
poetry
# usually required as python runtime dependencies
ncurses
libxml2
libxslt
libzip
zlib
cacert
];
shellHook = ''
# Set SOURCE_DATE_EPOCH so that we can use python wheels.
# This compromises immutability, but is what we need
# to allow package installs from PyPI
export SOURCE_DATE_EPOCH=$(date +%s)
VENV_DIR=$PWD/.venv
export PATH=$VENV_DIR/bin:$PATH
export LANG=en_US.UTF-8
# https://python-poetry.org/docs/configuration/
export POETRY_VIRTUALENVS_CREATE=false
export PIP_CACHE_DIR=$PWD/.local/pip-cache
# Dirty fix for Linux systems
# https://nixos.wiki/wiki/Packaging/Quirks_and_Caveats
export LD_LIBRARY_PATH=${stdenv.cc.cc.lib}/lib/:$LD_LIBRARY_PATH
'';
}
shell.nix
(based off the branch that fixes #44 )poetry.lock
The lock is the actual representation of a project consisting of two packages:
pyproject.toml
The result:
The text was updated successfully, but these errors were encountered: