python313Packages.nvchecker: modernize
- adjust ordering Co-authored-by: Fabian Affolter <mail@fabian-affolter.ch>
This commit is contained in:
co-authored by
Fabian Affolter
parent
d8500118d4
commit
01f6ea84ce
@@ -1,24 +1,25 @@
|
||||
{
|
||||
lib,
|
||||
platformdirs,
|
||||
awesomeversion,
|
||||
buildPythonPackage,
|
||||
docutils,
|
||||
fetchFromGitHub,
|
||||
nix-update-script,
|
||||
flaky,
|
||||
installShellFiles,
|
||||
jq,
|
||||
lxml,
|
||||
nix-update-script,
|
||||
packaging,
|
||||
platformdirs,
|
||||
pycurl,
|
||||
pytest-asyncio,
|
||||
pytest-httpbin,
|
||||
pytestCheckHook,
|
||||
pytest-httpbin,
|
||||
pythonOlder,
|
||||
setuptools,
|
||||
structlog,
|
||||
tomli,
|
||||
tornado,
|
||||
awesomeversion,
|
||||
packaging,
|
||||
lxml,
|
||||
zstandard,
|
||||
}:
|
||||
|
||||
@@ -27,8 +28,6 @@ buildPythonPackage rec {
|
||||
version = "2.19";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "lilydjwg";
|
||||
repo = "nvchecker";
|
||||
@@ -36,6 +35,8 @@ buildPythonPackage rec {
|
||||
hash = "sha256-C8g8uhuWOl3zPCjTaGs21yJ8k3tmvZE8U9LzSXoDSxE=";
|
||||
};
|
||||
|
||||
__darwinAllowLocalNetworking = true;
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
nativeBuildInputs = [
|
||||
@@ -43,7 +44,7 @@ buildPythonPackage rec {
|
||||
installShellFiles
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dependencies = [
|
||||
structlog
|
||||
platformdirs
|
||||
tornado
|
||||
@@ -51,7 +52,14 @@ buildPythonPackage rec {
|
||||
]
|
||||
++ lib.optionals (pythonOlder "3.11") [ tomli ];
|
||||
|
||||
__darwinAllowLocalNetworking = true;
|
||||
optional-dependencies = {
|
||||
# vercmp = [ pyalpm ];
|
||||
awesomeversion = [ awesomeversion ];
|
||||
pypi = [ packaging ];
|
||||
htmlparser = [ lxml ];
|
||||
rpmrepo = [ lxml ] ++ lib.optionals (pythonOlder "3.14") [ zstandard ];
|
||||
jq = [ jq ];
|
||||
};
|
||||
|
||||
nativeCheckInputs = [
|
||||
flaky
|
||||
@@ -73,22 +81,13 @@ buildPythonPackage rec {
|
||||
|
||||
disabledTestMarks = [ "needs_net" ];
|
||||
|
||||
optional-dependencies = {
|
||||
# vercmp = [ pyalpm ];
|
||||
awesomeversion = [ awesomeversion ];
|
||||
pypi = [ packaging ];
|
||||
htmlparser = [ lxml ];
|
||||
rpmrepo = [ lxml ] ++ lib.optionals (pythonOlder "3.14") [ zstandard ];
|
||||
jq = [ jq ];
|
||||
};
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = {
|
||||
description = "New version checker for software";
|
||||
homepage = "https://github.com/lilydjwg/nvchecker";
|
||||
changelog = "https://github.com/lilydjwg/nvchecker/releases/tag/v${version}";
|
||||
changelog = "https://github.com/lilydjwg/nvchecker/releases/tag/${src.tag}";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = [ lib.maintainers.mdaniels5757 ];
|
||||
maintainers = with lib.maintainers; [ mdaniels5757 ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -3668,7 +3668,7 @@ with pkgs;
|
||||
toPythonApplication (
|
||||
nvchecker.overridePythonAttrs (oldAttrs: {
|
||||
propagatedBuildInputs =
|
||||
oldAttrs.propagatedBuildInputs ++ lib.flatten (builtins.attrValues oldAttrs.optional-dependencies);
|
||||
oldAttrs.dependencies ++ lib.flatten (builtins.attrValues oldAttrs.optional-dependencies);
|
||||
})
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user