From 27aafa685255036e2b62155b6cf7b6b4a1773274 Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Wed, 21 Jun 2023 20:59:31 +0800 Subject: [PATCH] python3Packages.yamllint: 1.31.0 -> 1.32.0, switch to github source Changelog: https://github.com/adrienverge/yamllint/blob/v1.32.0/CHANGELOG.rst --- .../python-modules/yamllint/default.nix | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/yamllint/default.nix b/pkgs/development/python-modules/yamllint/default.nix index ba5e9e85ea49..7db56a0d617a 100644 --- a/pkgs/development/python-modules/yamllint/default.nix +++ b/pkgs/development/python-modules/yamllint/default.nix @@ -1,6 +1,7 @@ { lib , buildPythonPackage -, fetchPypi +, fetchFromGitHub +, setuptools , pathspec , pytestCheckHook , pythonOlder @@ -10,16 +11,22 @@ buildPythonPackage rec { pname = "yamllint"; - version = "1.31.0"; - format = "setuptools"; + version = "1.32.0"; + format = "pyproject"; disabled = pythonOlder "3.7"; - src = fetchPypi { - inherit pname version; - hash = "sha256-LYPx0S9zPhYqh+BrF2FJ17ucW65Knl/OHHcdf3A/emU="; + src = fetchFromGitHub { + owner = "adrienverge"; + repo = pname; + rev = "refs/tags/v${version}"; + hash = "sha256-DtIQ/gUBFQBm0OOJC2c/ONn2ZKsMAzdwMx7FbUo+uIU="; }; + nativeBuildInputs = [ + setuptools + ]; + propagatedBuildInputs = [ pyyaml pathspec