about summary refs log tree commit diff
path: root/pkgs/development/python-modules/fire/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/fire/default.nix')
-rw-r--r--pkgs/development/python-modules/fire/default.nix44
1 files changed, 32 insertions, 12 deletions
diff --git a/pkgs/development/python-modules/fire/default.nix b/pkgs/development/python-modules/fire/default.nix
index 252b180c4e065..bec9599793539 100644
--- a/pkgs/development/python-modules/fire/default.nix
+++ b/pkgs/development/python-modules/fire/default.nix
@@ -1,26 +1,44 @@
-{ lib, buildPythonPackage, fetchFromGitHub, six, hypothesis, mock
-, python-Levenshtein, pytest, termcolor, isPy27, enum34 }:
+{ lib
+, buildPythonPackage
+, fetchFromGitHub
+, six
+, hypothesis
+, mock
+, python-Levenshtein
+, pytestCheckHook
+, termcolor
+, pythonOlder
+}:
 
 buildPythonPackage rec {
   pname = "fire";
-  version = "0.4.0";
+  version = "0.5.0";
+  format = "setuptools";
+
+  disabled = pythonOlder "3.7";
 
   src = fetchFromGitHub {
     owner = "google";
     repo = "python-fire";
-    rev = "v${version}";
-    sha256 = "1caz6j2kdhj0kccrnqri6b4g2d6wzkkx8y9vxyvm7axvrwkv2vyn";
+    rev = "refs/tags/v${version}";
+    hash = "sha256-cwY1RRNtpAn6LnBASQLTNf4XXSPnfhOa1WgglGEM2/s=";
   };
 
-  propagatedBuildInputs = [ six termcolor ] ++ lib.optional isPy27 enum34;
+  propagatedBuildInputs = [
+    six
+    termcolor
+  ];
 
-  checkInputs = [ hypothesis mock python-Levenshtein pytest ];
+  checkInputs = [
+    hypothesis
+    mock
+    python-Levenshtein
+    pytestCheckHook
+  ];
 
-  # ignore test which asserts exact usage statement, default behavior
-  # changed in python3.8. This can likely be remove >=0.3.1
-  checkPhase = ''
-    py.test -k 'not testInitRequiresFlag'
-  '';
+  pythonImportsCheck = [
+    "fire"
+  ];
 
   meta = with lib; {
     description = "A library for automatically generating command line interfaces";
@@ -42,6 +60,8 @@ buildPythonPackage rec {
         REPL with the modules and variables you'll need already imported
         and created.
     '';
+    homepage = "https://github.com/google/python-fire";
+    changelog = "https://github.com/google/python-fire/releases/tag/v${version}";
     license = licenses.asl20;
     maintainers = with maintainers; [ leenaars ];
   };