1{ stdenv, buildPythonPackage, fetchFromGitHub, six, hypothesis, mock
2, python-Levenshtein, pytest }:
3
4buildPythonPackage rec {
5 pname = "fire";
6 version = "0.1.3";
7
8 src = fetchFromGitHub {
9 owner = "google";
10 repo = "python-fire";
11 rev = "v${version}";
12 sha256 = "0kdcmzr3sgzjsw5fmvdylgrn8akqjbs433jbgqzp498njl9cc6qx";
13 };
14
15 propagatedBuildInputs = [ six ];
16
17 checkInputs = [ hypothesis mock python-Levenshtein pytest ];
18
19 checkPhase = ''
20 py.test
21 '';
22
23
24 meta = with stdenv.lib; {
25 description = "A library for automatically generating command line interfaces";
26 longDescription = ''
27 Python Fire is a library for automatically generating command line
28 interfaces (CLIs) from absolutely any Python object.
29
30 * Python Fire is a simple way to create a CLI in Python.
31
32 * Python Fire is a helpful tool for developing and debugging
33 Python code.
34
35 * Python Fire helps with exploring existing code or turning other
36 people's code into a CLI.
37
38 * Python Fire makes transitioning between Bash and Python easier.
39
40 * Python Fire makes using a Python REPL easier by setting up the
41 REPL with the modules and variables you'll need already imported
42 and created.
43 '';
44 license = licenses.asl20;
45 maintainers = with maintainers; [ leenaars ];
46 };
47}