Reformatted file structure for NixOS deployment
parent
d59fddb6cd
commit
ad32f7b4be
|
@ -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",
|
||||
],
|
||||
)
|
24
shell.nix
24
shell.nix
|
@ -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
|
||||
'';
|
||||
}
|
Loading…
Reference in New Issue