summary refs log tree commit diff
path: root/pkgs/development/python-modules/gflags/default.nix
blob: 48fff7230569c99bae655f67cbf9835ba22bcfb5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ lib, buildPythonPackage, fetchPypi, six, pytest }:

buildPythonPackage rec {
  version = "3.1.1";
  name = "gflags-${version}";

  src = fetchPypi {
    inherit version;
    pname = "python-gflags";
    sha256 = "0qvcizlz6r4511kl4jlg6fr34y1ka956dr2jj1q0qcklr94n9zxa";
  };

  buildInputs = [ pytest ];

  propagatedBuildInputs = [ six ];

  checkPhase = ''
    # clashes with our pythhon wrapper (which is in argv0)
    # AssertionError: 'gflags._helpers_test' != 'nix_run_setup.py'
    py.test -k 'not testGetCallingModule'
  '';

  meta = {
    homepage = https://github.com/google/python-gflags;
    description = "A module for command line handling, similar to Google's gflags for C++";
    license = lib.licenses.bsd3;
  };
}