Rename python_app
directory, name and main entrypoint in setup.cfg
.
- running:
nix run
- dev shell (for IDE):
nix develop
- edit
setup.cfg
to add requirements (install_requires) - edit
requirements.txt
for dev shell requirements
- build:
nix build .#image -o image
- load to docker:
docker load < ./image
Add to inputs:
pypi-deps-db = {
url = "github:davhau/pypi-deps-db/0000000000000000000000000000000000000000";
flake = false;
};
mach-nix.inputs.pypi-deps-db.follows = "pypi-deps-db";
Add to mkPython (more info):
packagesExtra = [
(mach.buildPythonPackage
{
src = builtins.fetchGit {
url = "https://github.com/user/repo";
ref = "branch";
rev = "0000000000000000000000000000000000000000";
};
})
];