How can I create and run this python script in NixOS?

I’d like to use stemgen in NixOS, but I need a few pointers on how to do this…

A few months back, I followed this person’s script to run a python script via nix-shell; https://www.jojolepro.com/blog/2022-12-18_demucs_on_nixos/ . I tweaked this script a bit to make it run a the latest version software, and it works great!

I haven’t seen anyone with a script for this yet, and I’m interested in writing one.

Feel free to share any pointers on what I need to read or study, and how to write one.

Thanks!

stemgen isn’t a singular script, it looks more like a fully fledged project with a pyproject.toml. So regular advice for packaging python packages as described in the nixpkgs manual should do.

If it doesn’t, please share what you tried already.

1 Like

stemgen isn’t a singular script, it looks more like a fully fledged project with a pyproject.toml

Sounds good! I’m fairly new to all of this, notably python packages. I’ll read the manual link you shared and go from there.

Thanks!