Reformatted file structure for NixOS deployment

deployment
Illia Chub 2022-02-17 20:08:18 +02:00
parent d59fddb6cd
commit ad32f7b4be
5 changed files with 10 additions and 24 deletions

0
requirements.txt Normal file
View File

10
setup.py Normal file
View File

@ -0,0 +1,10 @@
from setuptools import setup, find_packages
setup(
name="nix-channel-redirect",
version="1.0.0",
packages=find_packages(),
scripts=[
"app.py",
],
)

View File

@ -1,24 +0,0 @@
{ pkgs ? import <nixpkgs> {} }:
let
sp-python = pkgs.python39.withPackages (p: with p; [
flask
flask-restful
setuptools
portalocker
pytest
pytest-mock
pytest-datadir
coverage
requests
]);
in
pkgs.mkShell {
buildInputs = [
sp-python
pkgs.black
];
shellHook = ''
PYTHONPATH=${sp-python}/${sp-python.sitePackages}
# maybe set more env-vars
'';
}