mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
python-gflags: 2.0 -> 3.1.1 (#26858)
* python-gflags: 2.0 -> 3.1.1 * python-gflags: split out to new python-modules dir * python-gflags: fix tests
This commit is contained in:
parent
e93f222fd4
commit
1856119466
2 changed files with 29 additions and 13 deletions
28
pkgs/development/python-modules/gflags/default.nix
Normal file
28
pkgs/development/python-modules/gflags/default.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{ 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;
|
||||
};
|
||||
}
|
|
@ -11609,19 +11609,7 @@ in {
|
|||
};
|
||||
|
||||
|
||||
gflags = buildPythonPackage rec {
|
||||
name = "gflags-2.0";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "http://python-gflags.googlecode.com/files/python-${name}.tar.gz";
|
||||
sha256 = "1mkc7315bpmh39vbn0jq237jpw34zsrjr1sck98xi36bg8hnc41i";
|
||||
};
|
||||
|
||||
meta = {
|
||||
homepage = http://code.google.com/p/python-gflags/;
|
||||
description = "A module for command line handling, similar to Google's gflags for C++";
|
||||
};
|
||||
};
|
||||
gflags = callPackage ../development/python-modules/gflags { };
|
||||
|
||||
ghdiff = callPackage ../development/python-modules/ghdiff.nix { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue