depot/pkgs/applications/science/misc/nextinspace/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

45 lines
913 B
Nix

{ 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";
mainProgram = "nextinspace";
homepage = "https://github.com/The-Kid-Gid/nextinspace";
license = licenses.gpl3Only;
maintainers = with maintainers; [ penguwin ];
};
}