2022-01-13 20:06:32 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, python3
|
|
|
|
}:
|
2020-11-24 20:58:05 +00:00
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2020-11-24 20:58:05 +00:00
|
|
|
pname = "nextinspace";
|
2022-07-18 16:21:45 +00:00
|
|
|
version = "2.0.5";
|
2022-01-13 20:06:32 +00:00
|
|
|
format = "pyproject";
|
2020-11-24 20:58:05 +00:00
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "not-stirred";
|
|
|
|
repo = pname;
|
2022-07-18 16:21:45 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-CrhzCvIA3YAFsWvdemvK1RLMacsM5RtgMjLeiqz5MwY=";
|
2020-11-24 20:58:05 +00:00
|
|
|
};
|
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
nativeBuildInputs = with python3.pkgs; [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonPath = with python3.pkgs; [
|
2020-11-24 20:58:05 +00:00
|
|
|
requests
|
|
|
|
tzlocal
|
|
|
|
colorama
|
|
|
|
];
|
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
checkInputs = with python3.pkgs; [
|
|
|
|
pytest-lazy-fixture
|
|
|
|
pytestCheckHook
|
|
|
|
requests-mock
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"nextinspace"
|
|
|
|
];
|
|
|
|
|
2020-11-24 20:58:05 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Print upcoming space-related events in your terminal";
|
|
|
|
homepage = "https://github.com/The-Kid-Gid/nextinspace";
|
2022-01-13 20:06:32 +00:00
|
|
|
license = licenses.gpl3Only;
|
2020-11-24 20:58:05 +00:00
|
|
|
maintainers = with maintainers; [ penguwin ];
|
|
|
|
};
|
|
|
|
}
|