Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 fetchFromGitHub,
4 python3,
5}:
6
7python3.pkgs.buildPythonApplication rec {
8 pname = "nextinspace";
9 version = "2.0.5";
10 format = "pyproject";
11
12 src = fetchFromGitHub {
13 owner = "not-stirred";
14 repo = "nextinspace";
15 tag = "v${version}";
16 hash = "sha256-CrhzCvIA3YAFsWvdemvK1RLMacsM5RtgMjLeiqz5MwY=";
17 };
18
19 nativeBuildInputs = with python3.pkgs; [
20 poetry-core
21 ];
22
23 pythonPath = with python3.pkgs; [
24 requests
25 tzlocal
26 colorama
27 ];
28
29 nativeCheckInputs = with python3.pkgs; [
30 pytest-lazy-fixture
31 pytestCheckHook
32 requests-mock
33 ];
34
35 pythonImportsCheck = [
36 "nextinspace"
37 ];
38
39 meta = with lib; {
40 description = "Print upcoming space-related events in your terminal";
41 mainProgram = "nextinspace";
42 homepage = "https://github.com/The-Kid-Gid/nextinspace";
43 license = licenses.gpl3Only;
44 maintainers = with maintainers; [ penguwin ];
45 };
46}