{ stdenv , python37 }: stdenv.mkDerivation rec { pname = "worktime"; version = "3"; src = ../worktime.py; phases = [ "buildPhase" "installPhase" ]; python = python37.withPackages (ps: with ps; [pyxdg dateutil uritools requests configparser]); buildPhase = '' substituteAll $src worktime ''; installPhase = '' install -m 0755 -D -t $out/bin \ worktime ''; }