From 04ebf457aecb4711666de3fdb53d46c7659de325 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 19 Dec 2022 15:45:21 +0100 Subject: [PATCH] python310Packages.versioneer: 0.26 -> 0.27 Changelog: https://github.com/python-versioneer/python-versioneer/blob/0.27/NEWS.md --- .../python-modules/versioneer/default.nix | 22 ++++++++++++++----- 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/versioneer/default.nix b/pkgs/development/python-modules/versioneer/default.nix index 51af7a498346..454ea83962b8 100644 --- a/pkgs/development/python-modules/versioneer/default.nix +++ b/pkgs/development/python-modules/versioneer/default.nix @@ -1,21 +1,31 @@ { lib , buildPythonPackage -, fetchPypi +, fetchFromGitHub , pythonOlder +, setuptools +, tomli }: buildPythonPackage rec { pname = "versioneer"; - version = "0.26"; - format = "setuptools"; + version = "0.27"; + format = "pyproject"; disabled = pythonOlder "3.7"; - src = fetchPypi { - inherit pname version; - hash = "sha256-hPxymqKW0dJmRaj2LxeAGYhf9vmhBzsppKIoJwrFJXs="; + src = fetchFromGitHub { + owner = "python-versioneer"; + repo = "python-versioneer"; + rev = "refs/tags/${version}"; + hash = "sha256-yCO9dqqEUdvLDLAfHkYUA+dHwn2OLrFlubWeGbvlAbA="; }; + nativeBuildInputs = [ + setuptools + ] ++ lib.optionals (pythonOlder "3.11") [ + tomli + ]; + # Couldn't get tests to work because, for instance, they used virtualenv and pip doCheck = false;