about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/science/misc/nextinspace/default.nix
blob: 78e21dcd8788ec2e8f52317a85eda19c438cedb2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{ lib
, fetchFromGitHub
, python3
}:

python3.pkgs.buildPythonApplication rec {
  pname = "nextinspace";
  version = "2.0.5";
  format = "pyproject";

  src = fetchFromGitHub {
    owner = "not-stirred";
    repo = pname;
    rev = "refs/tags/v${version}";
    hash = "sha256-CrhzCvIA3YAFsWvdemvK1RLMacsM5RtgMjLeiqz5MwY=";
  };

  nativeBuildInputs = with python3.pkgs; [
    poetry-core
  ];

  pythonPath = with python3.pkgs; [
    requests
    tzlocal
    colorama
  ];

  nativeCheckInputs = with python3.pkgs; [
    pytest-lazy-fixture
    pytestCheckHook
    requests-mock
  ];

  pythonImportsCheck = [
    "nextinspace"
  ];

  meta = with lib; {
    description = "Print upcoming space-related events in your terminal";
    homepage = "https://github.com/The-Kid-Gid/nextinspace";
    license = licenses.gpl3Only;
    maintainers = with maintainers; [ penguwin ];
  };
}