nixpkgs/pkgs/development/python-modules/gflags/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

34 lines
736 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
six,
pytest,
}:
buildPythonPackage rec {
version = "3.1.2";
pname = "python-gflags";
src = fetchPypi {
inherit pname version;
sha256 = "40ae131e899ef68e9e14aa53ca063839c34f6a168afe622217b5b875492a1ee2";
};
nativeCheckInputs = [ 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 = "Module for command line handling, similar to Google's gflags for C++";
license = lib.licenses.bsd3;
};
}