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