diff options
author | Benjamin Staffin <benley@gmail.com> | 2017-06-28 04:42:13 -0400 |
---|---|---|
committer | Frederik Rietdijk <freddyrietdijk@fridh.nl> | 2017-06-28 10:42:13 +0200 |
commit | 1856119466211694ff15e20a8472ca68c4a3c4a6 (patch) | |
tree | 15346a85f50139bbd89dd4aec47cfd4d8c6063d6 /pkgs/development/python-modules/gflags | |
parent | e93f222fd4d2c6197497db89ee6da06efb9694bf (diff) | |
download | nixlib-1856119466211694ff15e20a8472ca68c4a3c4a6.tar nixlib-1856119466211694ff15e20a8472ca68c4a3c4a6.tar.gz nixlib-1856119466211694ff15e20a8472ca68c4a3c4a6.tar.bz2 nixlib-1856119466211694ff15e20a8472ca68c4a3c4a6.tar.lz nixlib-1856119466211694ff15e20a8472ca68c4a3c4a6.tar.xz nixlib-1856119466211694ff15e20a8472ca68c4a3c4a6.tar.zst nixlib-1856119466211694ff15e20a8472ca68c4a3c4a6.zip |
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
Diffstat (limited to 'pkgs/development/python-modules/gflags')
-rw-r--r-- | pkgs/development/python-modules/gflags/default.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/gflags/default.nix b/pkgs/development/python-modules/gflags/default.nix new file mode 100644 index 000000000000..48fff7230569 --- /dev/null +++ b/pkgs/development/python-modules/gflags/default.nix @@ -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; + }; +} |