{ # nixpkgs stable branch pkgs ? import {}, # nixpkgs unstable branch, 2023-10-31 unstable ? import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/90e85bc7c1a6fc0760a94ace129d3a1c61c3d035.tar.gz") {} }: let my_python_pkgs = ps: with ps; [ ps.requests ps.pymediainfo ps.feedparser ( buildPythonPackage rec { pname = "simple-term-menu"; # Latest version as of 2023-11-02 version = "1.6.1"; src = fetchPypi { inherit pname version; sha256 = "sha256-NotBWNF0m4aFUvtsBUuDAXhQhscaclPayEBMw8stMOg="; }; propagatedBuildInputs = []; } ) # Build dependencies ps.build ps.twine # IDE # https://github.com/NixOS/nix-idea/issues/1#issuecomment-922555354 ps.pip ]; in pkgs.mkShell { nativeBuildInputs = [ pkgs.buildPackages.mpv ]; packages = [ (pkgs.python3.withPackages my_python_pkgs) ]; }