From 58d0a9cb616e35daf115b8e1aa9f5b79e4a21a70 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 28 Apr 2024 19:15:51 -0700 Subject: add a script to fetch cheeseboard's menu Delete the version in go. --- packages/pizza/default.nix | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 packages/pizza/default.nix (limited to 'packages/pizza/default.nix') diff --git a/packages/pizza/default.nix b/packages/pizza/default.nix new file mode 100644 index 0000000..cf5e836 --- /dev/null +++ b/packages/pizza/default.nix @@ -0,0 +1,31 @@ +{ lib, python3 }: + +python3.pkgs.buildPythonApplication rec { + pname = "pizza"; + src = ./pizza.py; + version = "0.1.0"; + format = "other"; + + buildInputs = [ python3 ]; + propagatedBuildInputs = with python3.pkgs; [ + beautifulsoup4 + prettytable + requests + termcolor + ]; + + dontUnpack = true; + dontBuild = true; + + installPhase = '' + mkdir -p $out/bin + cp $src $out/bin/${pname} + ''; + + meta = with lib; { + description = "Get the pizza for the week for CheeseBoard."; + license = with licenses; [ mit ]; + platforms = platforms.unix; + maintainers = with maintainers; [ fcuny ]; + }; +} -- cgit v1.2.3