From 8a82b78f5872d9704dd3f4763c7061cba1ea28de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philippe=20H=C3=BCrlimann?= Date: Sat, 19 Oct 2024 19:07:45 -1000 Subject: [PATCH] fahrplan: init at 1.1.2 --- pkgs/by-name/fa/fahrplan/package.nix | 36 ++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 pkgs/by-name/fa/fahrplan/package.nix diff --git a/pkgs/by-name/fa/fahrplan/package.nix b/pkgs/by-name/fa/fahrplan/package.nix new file mode 100644 index 000000000000..dc0d74b441d0 --- /dev/null +++ b/pkgs/by-name/fa/fahrplan/package.nix @@ -0,0 +1,36 @@ +{ + lib, + python3, + fetchFromGitHub, +}: +python3.pkgs.buildPythonApplication rec { + pname = "fahrplan"; + version = "1.1.2"; + pyproject = true; + + src = fetchFromGitHub { + owner = "dbrgn"; + repo = "fahrplan"; + rev = "refs/tags/v${version}"; + hash = "sha256-2QVaA2zqqFuxjkKbDXo+SNzkrDCxXiSYMUOftQ++wO4="; + }; + + build-system = with python3.pkgs; [ + setuptools + ]; + + dependencies = with python3.pkgs; [ + python-dateutil + requests + texttable + ]; + + meta = { + description = "Command line access to the SBB/CFF/FFS timetable with human readable argument parsing"; + homepage = "https://github.com/dbrgn/fahrplan"; + changelog = "https://github.com/dbrgn/fahrplan/blob/${src.rev}/CHANGELOG.md"; + license = lib.licenses.gpl3Plus; + maintainers = with lib.maintainers; [ p-h ]; + mainProgram = "fahrplan"; + }; +}