python3Packages.google-cloud-testutils: refactor

Build from github repo, modernize, enable tests, and add maintainer

Changed files
+18 -15
pkgs
development
python-modules
google-cloud-testutils
+18 -15
pkgs/development/python-modules/google-cloud-testutils/default.nix
···
lib,
buildPythonPackage,
click,
-
fetchPypi,
+
fetchFromGitHub,
google-auth,
packaging,
-
pythonOlder,
+
pytestCheckHook,
+
setuptools,
}:
buildPythonPackage rec {
pname = "google-cloud-testutils";
version = "1.6.0";
-
format = "setuptools";
+
pyproject = true;
-
disabled = pythonOlder "3.7";
+
src = fetchFromGitHub {
+
owner = "googleapis";
+
repo = "python-test-utils";
+
tag = "v${version}";
+
hash = "sha256-WxEFtYiWSl9ZmaduucdVpiCb2SUEVwUdY8jG8GHni7M=";
+
};
-
src = fetchPypi {
-
pname = "google_cloud_testutils";
-
inherit version;
-
hash = "sha256-wuCpUpc5Iny6MFoh7u9d175wL9DWHz4ZLM1f+DE+V6U=";
-
};
+
build-system = [ setuptools ];
-
propagatedBuildInputs = [
+
dependencies = [
click
google-auth
packaging
];
-
# does not contain tests
-
doCheck = false;
+
nativeCheckInputs = [
+
pytestCheckHook
+
];
pythonImportsCheck = [ "test_utils" ];
-
meta = with lib; {
+
meta = {
description = "System test utilities for google-cloud-python";
mainProgram = "lower-bound-checker";
homepage = "https://github.com/googleapis/python-test-utils";
changelog = "https://github.com/googleapis/python-test-utils/blob/v${version}/CHANGELOG.md";
-
license = licenses.asl20;
-
maintainers = [ ];
+
license = lib.licenses.asl20;
+
maintainers = [ lib.maintainers.sarahec ];
};
}