From c0b004a2e35b10641ec1e19e9e651bf9b4f2fb02 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Fri, 23 Sep 2022 02:14:25 +0000 Subject: [PATCH 1/2] python310Packages.crossplane: 0.5.7 -> 0.5.8 --- pkgs/development/python-modules/crossplane/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/crossplane/default.nix b/pkgs/development/python-modules/crossplane/default.nix index 14e153cd8b28..c9da1c27cb56 100644 --- a/pkgs/development/python-modules/crossplane/default.nix +++ b/pkgs/development/python-modules/crossplane/default.nix @@ -2,13 +2,13 @@ buildPythonPackage rec { pname = "crossplane"; - version = "0.5.7"; + version = "0.5.8"; src = fetchFromGitHub { owner = "nginxinc"; repo = "crossplane"; - rev = "v${version}"; - sha256 = "0lv3frfvnvz5wjxwh3mwy8nbypv4i62v4bvy5fv7vd6kmbxy1q9l"; + rev = "refs/tags/v${version}"; + sha256 = "sha256-DfIF+JvjIREi7zd5ZQ7Co/CIKC5iUeOgR/VLDPmrtTQ="; }; checkInputs = [ pytestCheckHook ]; From b81573950ea92eef4ee8ac2e55af4dffd9b5dcbb Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 23 Sep 2022 08:45:40 +0200 Subject: [PATCH 2/2] python310Packages.crossplane: disable on older Python releases --- .../python-modules/crossplane/default.nix | 22 ++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/crossplane/default.nix b/pkgs/development/python-modules/crossplane/default.nix index c9da1c27cb56..195e733ee874 100644 --- a/pkgs/development/python-modules/crossplane/default.nix +++ b/pkgs/development/python-modules/crossplane/default.nix @@ -1,23 +1,35 @@ -{ lib, buildPythonPackage, pytestCheckHook, fetchFromGitHub }: +{ lib +, buildPythonPackage +, pytestCheckHook +, fetchFromGitHub +, pythonOlder +}: buildPythonPackage rec { pname = "crossplane"; version = "0.5.8"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "nginxinc"; repo = "crossplane"; rev = "refs/tags/v${version}"; - sha256 = "sha256-DfIF+JvjIREi7zd5ZQ7Co/CIKC5iUeOgR/VLDPmrtTQ="; + hash = "sha256-DfIF+JvjIREi7zd5ZQ7Co/CIKC5iUeOgR/VLDPmrtTQ="; }; - checkInputs = [ pytestCheckHook ]; + checkInputs = [ + pytestCheckHook + ]; - pythonImportsCheck = [ "crossplane" ]; + pythonImportsCheck = [ + "crossplane" + ]; meta = with lib; { - homepage = "https://github.com/nginxinc/crossplane"; description = "NGINX configuration file parser and builder"; + homepage = "https://github.com/nginxinc/crossplane"; license = licenses.asl20; maintainers = with maintainers; [ kaction ]; };