python-gflags: 2.0 -> 3.1.1 (#26858)

* python-gflags: 2.0 -> 3.1.1

* python-gflags: split out to new python-modules dir

* python-gflags: fix tests
This commit is contained in:
Benjamin Staffin 2017-06-28 04:42:13 -04:00 committed by Frederik Rietdijk
parent e93f222fd4
commit 1856119466
2 changed files with 29 additions and 13 deletions

View File

@ -0,0 +1,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;
};
}

View File

@ -11609,19 +11609,7 @@ in {
};
gflags = buildPythonPackage rec {
name = "gflags-2.0";
src = pkgs.fetchurl {
url = "http://python-gflags.googlecode.com/files/python-${name}.tar.gz";
sha256 = "1mkc7315bpmh39vbn0jq237jpw34zsrjr1sck98xi36bg8hnc41i";
};
meta = {
homepage = http://code.google.com/p/python-gflags/;
description = "A module for command line handling, similar to Google's gflags for C++";
};
};
gflags = callPackage ../development/python-modules/gflags { };
ghdiff = callPackage ../development/python-modules/ghdiff.nix { };