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