summary refs log tree commit diff
path: root/pkgs/development/python-modules/gflags/default.nix
blob: f73ff2b4686d63dbbbc10313ee46433806a633cb (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.2";
  name = "gflags-${version}";

  src = fetchPypi {
    inherit version;
    pname = "python-gflags";
    sha256 = "40ae131e899ef68e9e14aa53ca063839c34f6a168afe622217b5b875492a1ee2";
  };

  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;
  };
}