at master 761 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 six, 6 pytest, 7}: 8 9buildPythonPackage rec { 10 version = "3.1.2"; 11 format = "setuptools"; 12 pname = "python-gflags"; 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "40ae131e899ef68e9e14aa53ca063839c34f6a168afe622217b5b875492a1ee2"; 17 }; 18 19 nativeCheckInputs = [ pytest ]; 20 21 propagatedBuildInputs = [ six ]; 22 23 checkPhase = '' 24 # clashes with our pythhon wrapper (which is in argv0) 25 # AssertionError: 'gflags._helpers_test' != 'nix_run_setup.py' 26 py.test -k 'not testGetCallingModule' 27 ''; 28 29 meta = { 30 homepage = "https://github.com/google/python-gflags"; 31 description = "Module for command line handling, similar to Google's gflags for C++"; 32 license = lib.licenses.bsd3; 33 }; 34}