From 406735d26bed4228e36871ab45f069d9254f4592 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 19 Jan 2024 16:01:43 +0100 Subject: [PATCH 1/3] python311Packages.grpc-google-iam-v1: 0.12.7 -> 0.13.0 --- .../development/python-modules/grpc-google-iam-v1/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/grpc-google-iam-v1/default.nix b/pkgs/development/python-modules/grpc-google-iam-v1/default.nix index e94278fec3104..fa910fdd72c93 100644 --- a/pkgs/development/python-modules/grpc-google-iam-v1/default.nix +++ b/pkgs/development/python-modules/grpc-google-iam-v1/default.nix @@ -8,12 +8,12 @@ buildPythonPackage rec { pname = "grpc-google-iam-v1"; - version = "0.12.7"; + version = "0.13.0"; pyproject = true; src = fetchPypi { inherit pname version; - hash = "sha256-AJGXp/HqqiIUnJbl4FSsWTS6ckGXTpJmPY01KKISA9E="; + hash = "sha256-+tMYYIueCTJY+/ElKRgPQA0cREU2mKM1CcxuzwBbKU4="; }; nativeBuildInputs = [ From 3319f720c7302ab0464f05432c0fc543d7aca84c Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 19 Jan 2024 16:08:34 +0100 Subject: [PATCH 2/3] python312Packages.grpc-google-iam-v1: enable tests --- .../grpc-google-iam-v1/default.nix | 28 +++++++++++++------ 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/grpc-google-iam-v1/default.nix b/pkgs/development/python-modules/grpc-google-iam-v1/default.nix index fa910fdd72c93..98f550a047f68 100644 --- a/pkgs/development/python-modules/grpc-google-iam-v1/default.nix +++ b/pkgs/development/python-modules/grpc-google-iam-v1/default.nix @@ -1,9 +1,10 @@ { lib , buildPythonPackage -, fetchPypi -, setuptools -, grpcio +, fetchFromGitHub , googleapis-common-protos +, grpcio +, pytestCheckHook +, setuptools }: buildPythonPackage rec { @@ -11,9 +12,11 @@ buildPythonPackage rec { version = "0.13.0"; pyproject = true; - src = fetchPypi { - inherit pname version; - hash = "sha256-+tMYYIueCTJY+/ElKRgPQA0cREU2mKM1CcxuzwBbKU4="; + src = fetchFromGitHub { + owner = "googleapis"; + repo = "python-grpc-google-iam-v1"; + rev = "refs/tags/v${version}"; + hash = "sha256-pmwHDzOaXrgqXZiaxIn01CtiAG+XRBGr8BgzbG/F1uw="; }; nativeBuildInputs = [ @@ -25,17 +28,24 @@ buildPythonPackage rec { googleapis-common-protos ]; - # no tests run - doCheck = false; + nativeCheckInputs = [ + pytestCheckHook + ]; pythonImportsCheck = [ "google.iam" "google.iam.v1" ]; + pytestFlagsArray = [ + "-W" + "ignore::DeprecationWarning" + ]; + meta = with lib; { description = "GRPC library for the google-iam-v1 service"; - homepage = "https://github.com/googleapis/googleapis"; + homepage = "https://github.com/googleapis/python-grpc-google-iam-v1"; + changelog = "https://github.com/googleapis/python-grpc-google-iam-v1/releases/tag/v${version}"; license = licenses.asl20; maintainers = with maintainers; [ ]; }; From 1ca2ea973af213fb91f7d1d6e41c87b6b6d0e20d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 20 Jan 2024 16:00:12 +0100 Subject: [PATCH 3/3] python311Packages.dbt-semantic-interfaces: 0.4.2 -> 0.4.3 Diff: https://github.com/dbt-labs/dbt-semantic-interfaces/compare/refs/tags/v0.4.2...0.4.3 Changelog: https://github.com/dbt-labs/dbt-semantic-interfaces/releases/tag/v0.4.3 --- .../dbt-semantic-interfaces/default.nix | 27 ++++++++++--------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/pkgs/development/python-modules/dbt-semantic-interfaces/default.nix b/pkgs/development/python-modules/dbt-semantic-interfaces/default.nix index 6dc4c6155adfe..f569f24757a25 100644 --- a/pkgs/development/python-modules/dbt-semantic-interfaces/default.nix +++ b/pkgs/development/python-modules/dbt-semantic-interfaces/default.nix @@ -1,33 +1,40 @@ { lib , buildPythonPackage -, fetchFromGitHub -, pytestCheckHook , click , dateutils +, dbt-postgres +, fetchFromGitHub , hatchling +, hypothesis , importlib-metadata , jinja2 , jsonschema , more-itertools , pydantic +, pytestCheckHook +, pythonOlder , pyyaml , typing-extensions -, hypothesis -, dbt-postgres }: buildPythonPackage rec { pname = "dbt-semantic-interfaces"; - version = "0.4.2"; + version = "0.4.3"; pyproject = true; + disabled = pythonOlder "3.8"; + src = fetchFromGitHub { owner = "dbt-labs"; - repo = pname; + repo = "dbt-semantic-interfaces"; rev = "refs/tags/v${version}"; - hash = "sha256-Q3aKUyXB+HzPCpwbJ66zDv92n04Gb0w7ivWfga3UX3s="; + hash = "sha256-mYAOAi0Qb89zp4o7vRdR7fw7vrlXt1TFVqGR09QcRSA="; }; + nativeBuildInputs = [ + hatchling + ]; + propagatedBuildInputs = [ click dateutils @@ -40,10 +47,6 @@ buildPythonPackage rec { typing-extensions ]; - nativeBuildInputs = [ - hatchling - ]; - nativeCheckInputs = [ pytestCheckHook hypothesis @@ -59,7 +62,5 @@ buildPythonPackage rec { homepage = "https://github.com/dbt-labs/dbt-semantic-interfaces"; license = licenses.asl20; maintainers = with maintainers; [ pbsds ]; - # https://github.com/dbt-labs/dbt-semantic-interfaces/issues/134 - broken = versionAtLeast pydantic.version "2"; }; }