nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 python3,
4 fetchFromGitHub,
5}:
6python3.pkgs.buildPythonApplication rec {
7 pname = "fahrplan";
8 version = "1.1.2";
9 pyproject = true;
10
11 src = fetchFromGitHub {
12 owner = "dbrgn";
13 repo = "fahrplan";
14 tag = "v${version}";
15 hash = "sha256-2QVaA2zqqFuxjkKbDXo+SNzkrDCxXiSYMUOftQ++wO4=";
16 };
17
18 build-system = with python3.pkgs; [
19 setuptools
20 ];
21
22 dependencies = with python3.pkgs; [
23 python-dateutil
24 requests
25 texttable
26 ];
27
28 meta = {
29 description = "Command line access to the SBB/CFF/FFS timetable with human readable argument parsing";
30 homepage = "https://github.com/dbrgn/fahrplan";
31 changelog = "https://github.com/dbrgn/fahrplan/blob/${src.rev}/CHANGELOG.md";
32 license = lib.licenses.gpl3Plus;
33 maintainers = with lib.maintainers; [ p-h ];
34 mainProgram = "fahrplan";
35 };
36}