diff --git a/pkgs/development/python-modules/google-cloud-testutils/default.nix b/pkgs/development/python-modules/google-cloud-testutils/default.nix index c5b6f750cbb3..7f22b14d12d3 100644 --- a/pkgs/development/python-modules/google-cloud-testutils/default.nix +++ b/pkgs/development/python-modules/google-cloud-testutils/default.nix @@ -2,42 +2,45 @@ lib, buildPythonPackage, click, - fetchPypi, + fetchFromGitHub, google-auth, packaging, - pythonOlder, + pytestCheckHook, + setuptools, }: buildPythonPackage rec { pname = "google-cloud-testutils"; - version = "1.6.0"; - format = "setuptools"; + version = "1.6.4"; + pyproject = true; - disabled = pythonOlder "3.7"; - - src = fetchPypi { - pname = "google_cloud_testutils"; - inherit version; - hash = "sha256-wuCpUpc5Iny6MFoh7u9d175wL9DWHz4ZLM1f+DE+V6U="; + src = fetchFromGitHub { + owner = "googleapis"; + repo = "python-test-utils"; + tag = "v${version}"; + hash = "sha256-VTu/ElWZrSUrUBrfLPTBV4PMSQCRAyF9Ka7jKEqVzLk="; }; - propagatedBuildInputs = [ + build-system = [ setuptools ]; + + 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 = [ ]; + changelog = "https://github.com/googleapis/python-test-utils/blob/${src.tag}/CHANGELOG.md"; + license = lib.licenses.asl20; + maintainers = [ lib.maintainers.sarahec ]; }; }