mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 19:45:54 +00:00
1856119466
* python-gflags: 2.0 -> 3.1.1 * python-gflags: split out to new python-modules dir * python-gflags: fix tests
29 lines
733 B
Nix
29 lines
733 B
Nix
{ 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;
|
|
};
|
|
}
|