Merge pull request #319996 from fabaff/pyhaversion-bump
python312Packages.pyhaversion: 23.1.0 -> 24.6.1
This commit is contained in:
@@ -5,32 +5,35 @@
|
||||
awesomeversion,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
pythonOlder,
|
||||
poetry-core,
|
||||
pytest-asyncio,
|
||||
pytestCheckHook,
|
||||
pythonOlder,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyhaversion";
|
||||
version = "23.1.0";
|
||||
format = "setuptools";
|
||||
version = "24.6.1";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
disabled = pythonOlder "3.12";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ludeeus";
|
||||
repo = pname;
|
||||
repo = "pyhaversion";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-HMJqZn0yzN2dP5WTRCbem1Xw8nyH2Hy7oVP4kEKHHAo=";
|
||||
hash = "sha256-UZ9236mERoz3WG9MfeN1ALKc8OjqpcbbIhiEsRYzn4I=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
# Upstream doesn't set a version for the tagged releases
|
||||
substituteInPlace setup.py \
|
||||
--replace "main" ${version}
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace-fail 'version = "0"' 'version = "${version}"'
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
build-system = [ poetry-core ];
|
||||
|
||||
dependencies = [
|
||||
aiohttp
|
||||
awesomeversion
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user