summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2022-01-09 01:17:15 +0100
committerFabian Affolter <mail@fabian-affolter.ch>2022-01-09 01:17:23 +0100
commitb9c6bff4f07ea912a8be8af1a0a3bb043626f75c (patch)
tree770cd483c09d81b1d70e38c8914f748c4ca64b93 /pkgs
parent5f406972a5400acf57a67180003c950f04551ffd (diff)
downloadnixpkgs-b9c6bff4f07ea912a8be8af1a0a3bb043626f75c.tar
nixpkgs-b9c6bff4f07ea912a8be8af1a0a3bb043626f75c.tar.gz
nixpkgs-b9c6bff4f07ea912a8be8af1a0a3bb043626f75c.tar.bz2
nixpkgs-b9c6bff4f07ea912a8be8af1a0a3bb043626f75c.tar.lz
nixpkgs-b9c6bff4f07ea912a8be8af1a0a3bb043626f75c.tar.xz
nixpkgs-b9c6bff4f07ea912a8be8af1a0a3bb043626f75c.tar.zst
nixpkgs-b9c6bff4f07ea912a8be8af1a0a3bb043626f75c.zip
nextinspace: 1.0.6 -> 2.0.3
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/applications/science/misc/nextinspace/default.nix36
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 390b2c58ca6..fd7e5818314 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 ];
   };
 }