python3Packages.awesomeversion: 23.8.0 -> 23.11.0

https://github.com/ludeeus/awesomeversion/releases/tag/23.11.0
This commit is contained in:
Martin Weinelt
2023-12-20 20:17:42 +01:00
parent 267495e988
commit cdbfb22bcb
@@ -1,14 +1,19 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytestCheckHook
, pythonOlder
# build-system
, poetry-core
# tests
, pytest-snapshot
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "awesomeversion";
version = "23.8.0";
version = "23.11.0";
format = "pyproject";
disabled = pythonOlder "3.8";
@@ -17,27 +22,28 @@ buildPythonPackage rec {
owner = "ludeeus";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-7JJNO25UfzLs1jEO7XpqFFuEqpY4UecUk25hpONRjrI=";
hash = "sha256-glnM32ha5eXVpoaDkEsbwdH1oiG9qMxFwbtqLx+Kl98=";
};
nativeBuildInputs = [
poetry-core
];
nativeCheckInputs = [
pytestCheckHook
];
postPatch = ''
# Upstream doesn't set a version
substituteInPlace pyproject.toml \
--replace 'version = "0"' 'version = "${version}"'
'';
nativeBuildInputs = [
poetry-core
];
pythonImportsCheck = [
"awesomeversion"
];
nativeCheckInputs = [
pytest-snapshot
pytestCheckHook
];
meta = with lib; {
description = "Python module to deal with versions";
homepage = "https://github.com/ludeeus/awesomeversion";