python312Packages.dunamai: 1.22.0 -> 1.23.0
Diff: https://github.com/mtkennerly/dunamai/compare/refs/tags/v1.22.0...v1.23.0 Changelog: https://github.com/mtkennerly/dunamai/blob/v1.23.0/CHANGELOG.md
This commit is contained in:
parent
c33faa164d
commit
0d9aa56baf
@ -1,45 +1,47 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
poetry-core,
|
|
||||||
buildPythonPackage,
|
buildPythonPackage,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
pythonOlder,
|
|
||||||
importlib-metadata,
|
# build-system
|
||||||
|
poetry-core,
|
||||||
|
|
||||||
|
# dependencies
|
||||||
packaging,
|
packaging,
|
||||||
|
|
||||||
|
# tests
|
||||||
|
addBinToPathHook,
|
||||||
|
gitMinimal,
|
||||||
pytestCheckHook,
|
pytestCheckHook,
|
||||||
git,
|
writableTmpDirAsHomeHook,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "dunamai";
|
pname = "dunamai";
|
||||||
version = "1.22.0";
|
version = "1.23.0";
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "mtkennerly";
|
owner = "mtkennerly";
|
||||||
repo = "dunamai";
|
repo = "dunamai";
|
||||||
tag = "v${version}";
|
tag = "v${version}";
|
||||||
hash = "sha256-oOchPGBRHf3PT1Ynci56CF/eW4TkRVPV9inVNX2QQrk=";
|
hash = "sha256-JuW/VL8kfzz5mSXRHtrg/hHykgcewaQYfDuO2PALbWc=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ poetry-core ];
|
build-system = [ poetry-core ];
|
||||||
|
|
||||||
propagatedBuildInputs = [ packaging ] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
|
dependencies = [ packaging ];
|
||||||
|
|
||||||
# needs to be able to run dunami from PATH
|
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
export PATH=$PATH:$out/bin
|
|
||||||
export HOME=$(mktemp -d)
|
|
||||||
|
|
||||||
git config --global user.email "nobody@example.com"
|
git config --global user.email "nobody@example.com"
|
||||||
git config --global user.name "Nobody"
|
git config --global user.name "Nobody"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
git
|
addBinToPathHook
|
||||||
|
gitMinimal
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
|
writableTmpDirAsHomeHook
|
||||||
];
|
];
|
||||||
|
|
||||||
disabledTests = [
|
disabledTests = [
|
||||||
@ -49,12 +51,12 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
pythonImportsCheck = [ "dunamai" ];
|
pythonImportsCheck = [ "dunamai" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = {
|
||||||
description = "Dynamic version generation";
|
description = "Dynamic version generation";
|
||||||
mainProgram = "dunamai";
|
mainProgram = "dunamai";
|
||||||
homepage = "https://github.com/mtkennerly/dunamai";
|
homepage = "https://github.com/mtkennerly/dunamai";
|
||||||
changelog = "https://github.com/mtkennerly/dunamai/blob/v${version}/CHANGELOG.md";
|
changelog = "https://github.com/mtkennerly/dunamai/blob/v${version}/CHANGELOG.md";
|
||||||
license = licenses.mit;
|
license = lib.licenses.mit;
|
||||||
maintainers = with maintainers; [ jmgilman ];
|
maintainers = with lib.maintainers; [ jmgilman ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user