2022-01-09 00:17:15 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, python3
|
|
|
|
}:
|
2020-11-11 18:43:00 +00:00
|
|
|
|
2022-01-09 00:17:15 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2020-11-11 18:43:00 +00:00
|
|
|
pname = "nextinspace";
|
2022-01-09 00:17:15 +00:00
|
|
|
version = "2.0.3";
|
|
|
|
format = "pyproject";
|
2020-11-11 18:43:00 +00:00
|
|
|
|
2022-01-09 00:17:15 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "not-stirred";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-Macx2pQglB95Bhc939TFVCHd1qvqJsco91EXKCIQLgg=";
|
2020-11-11 18:43:00 +00:00
|
|
|
};
|
|
|
|
|
2022-01-09 00:17:15 +00:00
|
|
|
nativeBuildInputs = with python3.pkgs; [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonPath = with python3.pkgs; [
|
2020-11-11 18:43:00 +00:00
|
|
|
requests
|
|
|
|
tzlocal
|
|
|
|
colorama
|
|
|
|
];
|
|
|
|
|
2022-01-09 00:17:15 +00:00
|
|
|
checkInputs = with python3.pkgs; [
|
|
|
|
pytest-lazy-fixture
|
|
|
|
pytestCheckHook
|
|
|
|
requests-mock
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"nextinspace"
|
|
|
|
];
|
|
|
|
|
2020-11-11 18:43:00 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Print upcoming space-related events in your terminal";
|
|
|
|
homepage = "https://github.com/The-Kid-Gid/nextinspace";
|
2022-01-09 00:17:15 +00:00
|
|
|
license = licenses.gpl3Only;
|
2020-11-11 18:43:00 +00:00
|
|
|
maintainers = with maintainers; [ penguwin ];
|
|
|
|
};
|
|
|
|
}
|