Files
nixpkgs/pkgs/development/python-modules/google-apitools/default.nix
T
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

71 lines
1.3 KiB
Nix

{ lib
, buildPythonPackage
, fasteners
, fetchFromGitHub
, gflags
, httplib2
, mock
, oauth2client
, pytestCheckHook
, pythonOlder
, six
}:
buildPythonPackage rec {
pname = "google-apitools";
version = "0.5.32";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "google";
repo = "apitools";
rev = "refs/tags/v${version}";
hash = "sha256-Z9BTDU6KKCcjspVLi5mJqVZMYEapnMXLPL5BXsIKZAw=";
};
propagatedBuildInputs = [
fasteners
httplib2
oauth2client
six
];
passthru.optional-dependencies = {
cli = [
gflags
];
};
nativeCheckInputs = [
mock
pytestCheckHook
];
pythonImportsCheck = [
"apitools"
];
disabledTests = [
# AttributeError: 'FieldList' object has no attribute '_FieldList__field'
"testPickle"
"testDecodeBadBase64BytesField"
"testConvertIdThatNeedsEscaping"
"testGeneration"
];
disabledTestPaths = [
# Samples are partially postfixed with test
"samples"
];
meta = with lib; {
description = "Collection of utilities to make it easier to build client-side tools";
homepage = "https://github.com/google/apitools";
changelog = "https://github.com/google/apitools/releases/tag/v${version}";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}