From 7beff147aea303296111272c7f59b61acb25f050 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 26 Aug 2023 12:55:57 -0700 Subject: [PATCH] python310Packages.ytmusicapi: 1.1.1 -> 1.2.1 Changelog: https://github.com/sigma67/ytmusicapi/releases/tag/1.2.1 --- .../python-modules/ytmusicapi/default.nix | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/ytmusicapi/default.nix b/pkgs/development/python-modules/ytmusicapi/default.nix index 72d5e40355191..8334fba45ffbd 100644 --- a/pkgs/development/python-modules/ytmusicapi/default.nix +++ b/pkgs/development/python-modules/ytmusicapi/default.nix @@ -1,6 +1,6 @@ { lib , buildPythonPackage -, fetchPypi +, fetchFromGitHub , pythonOlder , requests , setuptools @@ -9,14 +9,16 @@ buildPythonPackage rec { pname = "ytmusicapi"; - version = "1.1.1"; + version = "1.2.1"; format = "pyproject"; disabled = pythonOlder "3.8"; - src = fetchPypi { - inherit pname version; - hash = "sha256-UCWNub0FErdmF3kGSIJlpIcKdPZdPzJ5y8yx9ZPBUlw="; + src = fetchFromGitHub { + owner = "sigma67"; + repo = "ytmusicapi"; + rev = "refs/tags/${version}"; + hash = "sha256-YgV3kCvCOLNXb3cWBVXRuzH4guuvPpXVojOnSnrXj20="; }; nativeBuildInputs = [ @@ -24,6 +26,8 @@ buildPythonPackage rec { setuptools-scm ]; + SETUPTOOLS_SCM_PRETEND_VERSION = version; + propagatedBuildInputs = [ requests ];