diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2022-01-09 01:17:15 +0100 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2022-01-09 01:17:23 +0100 |
commit | b9c6bff4f07ea912a8be8af1a0a3bb043626f75c (patch) | |
tree | 770cd483c09d81b1d70e38c8914f748c4ca64b93 /pkgs/applications/science/misc/nextinspace | |
parent | 5f406972a5400acf57a67180003c950f04551ffd (diff) |
nextinspace: 1.0.6 -> 2.0.3
Diffstat (limited to 'pkgs/applications/science/misc/nextinspace')
-rw-r--r-- | pkgs/applications/science/misc/nextinspace/default.nix | 36 |
1 files changed, 28 insertions, 8 deletions
diff --git a/pkgs/applications/science/misc/nextinspace/default.nix b/pkgs/applications/science/misc/nextinspace/default.nix index 390b2c58ca682..fd7e581831448 100644 --- a/pkgs/applications/science/misc/nextinspace/default.nix +++ b/pkgs/applications/science/misc/nextinspace/default.nix @@ -1,24 +1,44 @@ -{ lib, fetchPypi, python3Packages }: +{ lib +, fetchFromGitHub +, python3 +}: -python3Packages.buildPythonPackage rec { +python3.pkgs.buildPythonApplication rec { pname = "nextinspace"; - version = "1.0.6"; + version = "2.0.3"; + format = "pyproject"; - src = fetchPypi { - inherit pname version; - sha256 = "1h3dksxyy5gq071fa7i2p73s50918y1bkk38hgfwr4226c3wipvg"; + src = fetchFromGitHub { + owner = "not-stirred"; + repo = pname; + rev = "v${version}"; + hash = "sha256-Macx2pQglB95Bhc939TFVCHd1qvqJsco91EXKCIQLgg="; }; - pythonPath = with python3Packages; [ + nativeBuildInputs = with python3.pkgs; [ + poetry-core + ]; + + pythonPath = with python3.pkgs; [ requests tzlocal colorama ]; + checkInputs = 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.gpl3; + license = licenses.gpl3Only; maintainers = with maintainers; [ penguwin ]; }; } |