2017-06-28 09:42:13 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, six, pytest }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2017-11-05 12:16:18 +00:00
|
|
|
version = "3.1.2";
|
2018-01-01 10:47:13 +00:00
|
|
|
pname = "python-gflags";
|
2017-06-28 09:42:13 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2018-01-01 10:47:13 +00:00
|
|
|
inherit pname version;
|
2017-11-05 12:16:18 +00:00
|
|
|
sha256 = "40ae131e899ef68e9e14aa53ca063839c34f6a168afe622217b5b875492a1ee2";
|
2017-06-28 09:42:13 +01:00
|
|
|
};
|
|
|
|
|
2018-01-01 10:47:13 +00:00
|
|
|
checkInputs = [ pytest ];
|
2017-06-28 09:42:13 +01:00
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|