1 { lib, buildPythonPackage, fetchFromGitHub, six, hypothesis, mock
2 , python-Levenshtein, pytest, termcolor, isPy27, enum34 }:
4 buildPythonPackage rec {
8 src = fetchFromGitHub {
12 sha256 = "1caz6j2kdhj0kccrnqri6b4g2d6wzkkx8y9vxyvm7axvrwkv2vyn";
15 propagatedBuildInputs = [ six termcolor ] ++ lib.optional isPy27 enum34;
17 checkInputs = [ hypothesis mock python-Levenshtein pytest ];
19 # ignore test which asserts exact usage statement, default behavior
20 # changed in python3.8. This can likely be remove >=0.3.1
22 py.test -k 'not testInitRequiresFlag'
26 description = "A library for automatically generating command line interfaces";
28 Python Fire is a library for automatically generating command line
29 interfaces (CLIs) from absolutely any Python object.
31 * Python Fire is a simple way to create a CLI in Python.
33 * Python Fire is a helpful tool for developing and debugging
36 * Python Fire helps with exploring existing code or turning other
37 people's code into a CLI.
39 * Python Fire makes transitioning between Bash and Python easier.
41 * Python Fire makes using a Python REPL easier by setting up the
42 REPL with the modules and variables you'll need already imported
45 license = licenses.asl20;
46 maintainers = with maintainers; [ leenaars ];