Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / gflags / default.nix
blob9b3b92784d7913af235726728f4af78933aeca1f
1 { lib, buildPythonPackage, fetchPypi, six, pytest }:
3 buildPythonPackage rec {
4   version = "3.1.2";
5   pname = "python-gflags";
7   src = fetchPypi {
8     inherit pname version;
9     sha256 = "40ae131e899ef68e9e14aa53ca063839c34f6a168afe622217b5b875492a1ee2";
10   };
12   checkInputs = [ pytest ];
14   propagatedBuildInputs = [ six ];
16   checkPhase = ''
17     # clashes with our pythhon wrapper (which is in argv0)
18     # AssertionError: 'gflags._helpers_test' != 'nix_run_setup.py'
19     py.test -k 'not testGetCallingModule'
20   '';
22   meta = {
23     homepage = "https://github.com/google/python-gflags";
24     description = "A module for command line handling, similar to Google's gflags for C++";
25     license = lib.licenses.bsd3;
26   };