git.iko.soy/typeable/nixpkgs
on master help sign in
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

commit1856119466211694ff15e20a8472ca68c4a3c4a6 authorBenjamin Staffin <benley@gmail.com> dateWed 28 Jun 2017, 04:42 (9 years ago) parente93f222
2 files changed+29−13
pkgs/development/python-modules/gflags/default.nix+28 pkgs/top-level/python-packages.nix+1−13
pkgs/development/python-modules/gflags/default.nixnew file+28
@@ -0,0 +1,28 @@
1+{ lib, buildPythonPackage, fetchPypi, six, pytest }:
2+
3+buildPythonPackage 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+}
pkgs/top-level/python-packages.nix+1−13
@@ -11609,19 +11609,7 @@ in {
1160911609 };
1161011610
1161111611
11612− gflags = buildPythonPackage rec {
11613− name = "gflags-2.0";
11614−
11615− src = pkgs.fetchurl {
11616− url = "http://python-gflags.googlecode.com/files/python-${name}.tar.gz";
11617− sha256 = "1mkc7315bpmh39vbn0jq237jpw34zsrjr1sck98xi36bg8hnc41i";
11618− };
11619−
11620− meta = {
11621− homepage = http://code.google.com/p/python-gflags/;
11622− description = "A module for command line handling, similar to Google's gflags for C++";
11623− };
11624− };
11612+ gflags = callPackage ../development/python-modules/gflags { };
1162511613
1162611614 ghdiff = callPackage ../development/python-modules/ghdiff.nix { };
1162711615