python310Packages.versioneer: 0.26 -> 0.27

Changelog: https://github.com/python-versioneer/python-versioneer/blob/0.27/NEWS.md
This commit is contained in:
Fabian Affolter 2022-12-19 15:45:21 +01:00
parent 2c8f296b37
commit 04ebf457ae

View file

@ -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;