vendor-reset less cursed, moved scripts

This commit is contained in:
kat witch 2021-02-27 13:57:42 +00:00
parent b140857acd
commit 17cbf19db4
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
4 changed files with 2 additions and 8 deletions

View file

@ -0,0 +1,15 @@
{ pkgs ? import <nixpkgs> { } }:
with pkgs;
mkShell {
buildInputs = [ pkgs.python3 pkgs.python3.pkgs.requests ];
shellHook = ''
# Tells pip to put packages into $PIP_PREFIX instead of the usual locations.
# See https://pip.pypa.io/en/stable/user_guide/#environment-variables.
export PIP_PREFIX=$(pwd)/_build/pip_packages
export PYTHONPATH="$PIP_PREFIX/${pkgs.python3.sitePackages}:$PYTHONPATH"
export PATH="$PIP_PREFIX/bin:$PATH"
unset SOURCE_DATE_EPOCH
'';
}