From b9c6bff4f07ea912a8be8af1a0a3bb043626f75c Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 9 Jan 2022 01:17:15 +0100 Subject: [PATCH] nextinspace: 1.0.6 -> 2.0.3 --- .../science/misc/nextinspace/default.nix | 36 ++++++++++++++----- 1 file changed, 28 insertions(+), 8 deletions(-) diff --git a/pkgs/applications/science/misc/nextinspace/default.nix b/pkgs/applications/science/misc/nextinspace/default.nix index 390b2c58ca68..fd7e58183144 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 ]; }; }