mirror of
https://github.com/PokeAPI/pokeapi
synced 2024-11-21 19:03:08 +00:00
ci: add nix-shell
This commit is contained in:
parent
701f2a78b6
commit
c2d34ea637
1 changed files with 41 additions and 0 deletions
41
default.nix
Normal file
41
default.nix
Normal file
|
@ -0,0 +1,41 @@
|
|||
with import <nixpkgs> { };
|
||||
|
||||
let
|
||||
pythonPackages = python3Packages;
|
||||
in pkgs.mkShell rec {
|
||||
name = "impurePythonEnv";
|
||||
venvDir = "./.venv";
|
||||
buildInputs = [
|
||||
python310Packages.python
|
||||
python310Packages.venvShellHook
|
||||
|
||||
# python310Packages.coverage
|
||||
# python310Packages.python-mimeparse
|
||||
# python310Packages.python-dateutil
|
||||
# python310Packages.drf-spectacular
|
||||
# python310Packages.djangorestframework
|
||||
# python310Packages.django-redis
|
||||
# python310Packages.django-cors-headers
|
||||
|
||||
# Required dependancies
|
||||
taglib
|
||||
openssl
|
||||
git
|
||||
libxml2
|
||||
libxslt
|
||||
libzip
|
||||
zlib
|
||||
];
|
||||
|
||||
# Run this command, only after creating the virtual environment
|
||||
postVenvCreation = ''
|
||||
unset SOURCE_DATE_EPOCH
|
||||
pip install -r requirements.txt
|
||||
'';
|
||||
|
||||
postShellHook = ''
|
||||
# allow pip to install wheels
|
||||
unset SOURCE_DATE_EPOCH
|
||||
'';
|
||||
|
||||
}
|
Loading…
Reference in a new issue