1{ lib, buildPythonPackage, fetchPypi, six, pytest }:
2
3buildPythonPackage rec {
4 version = "3.1.1";
5 name = "gflags-${version}";
6
7 src = fetchPypi {
8 inherit version;
9 pname = "python-gflags";
10 sha256 = "0qvcizlz6r4511kl4jlg6fr34y1ka956dr2jj1q0qcklr94n9zxa";
11 };
12
13 buildInputs = [ pytest ];
14
15 propagatedBuildInputs = [ six ];
16
17 checkPhase = ''
18 # clashes with our pythhon wrapper (which is in argv0)
19 # AssertionError: 'gflags._helpers_test' != 'nix_run_setup.py'
20 py.test -k 'not testGetCallingModule'
21 '';
22
23 meta = {
24 homepage = https://github.com/google/python-gflags;
25 description = "A module for command line handling, similar to Google's gflags for C++";
26 license = lib.licenses.bsd3;
27 };
28}