From 0e4b730d638fc54eabca93428f8ff7ef12bb0c63 Mon Sep 17 00:00:00 2001 From: Kira Bruneau Date: Sat, 16 Jul 2022 20:54:11 -0400 Subject: [PATCH] =?UTF-8?q?python3Packages.pygls:=200.12=20=E2=86=92=200.1?= =?UTF-8?q?2.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../python-modules/pygls/default.nix | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/pkgs/development/python-modules/pygls/default.nix b/pkgs/development/python-modules/pygls/default.nix index 4de2e30d0f64..e9a6850b5e65 100644 --- a/pkgs/development/python-modules/pygls/default.nix +++ b/pkgs/development/python-modules/pygls/default.nix @@ -1,6 +1,6 @@ { lib , buildPythonPackage -, isPy3k +, pythonOlder , fetchFromGitHub , setuptools-scm , pydantic @@ -13,15 +13,16 @@ buildPythonPackage rec { pname = "pygls"; - version = "0.12"; + version = "0.12.1"; format = "setuptools"; - disabled = !isPy3k; + + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "openlawlibrary"; repo = pname; - rev = "v${version}"; - sha256 = "sha256-PEfGxOUsiZ5WLmoQkOP2RRWJlIKi+42lOu55C3C+k8A="; + rev = "refs/tags/v${version}"; + sha256 = "sha256-L2KTNiI+I+r2fF88B1NSunowokrDzGCw3PXbxekg/oE="; }; SETUPTOOLS_SCM_PRETEND_VERSION = version; @@ -32,12 +33,6 @@ buildPythonPackage rec { toml typeguard ]; - # We don't know why an early version of pydantic is required, see: - # https://github.com/openlawlibrary/pygls/issues/221 - preBuild = '' - substituteInPlace setup.cfg \ - --replace "pydantic>=1.7,<1.9" "pydantic" - ''; checkInputs = [ mock