diff options
Diffstat (limited to 'pkgs/development/python-modules/nvchecker/default.nix')
-rw-r--r-- | pkgs/development/python-modules/nvchecker/default.nix | 63 |
1 files changed, 26 insertions, 37 deletions
diff --git a/pkgs/development/python-modules/nvchecker/default.nix b/pkgs/development/python-modules/nvchecker/default.nix index 87f2fcfb43fb5..d0c88698a6c04 100644 --- a/pkgs/development/python-modules/nvchecker/default.nix +++ b/pkgs/development/python-modules/nvchecker/default.nix @@ -1,27 +1,28 @@ -{ lib -, platformdirs -, buildPythonPackage -, docutils -, fetchFromGitHub -, flaky -, installShellFiles -, pycurl -, pytest-asyncio -, pytest-httpbin -, pytestCheckHook -, pythonOlder -, setuptools -, structlog -, tomli -, tornado -, awesomeversion -, packaging -, lxml +{ + lib, + platformdirs, + buildPythonPackage, + docutils, + fetchFromGitHub, + flaky, + installShellFiles, + pycurl, + pytest-asyncio, + pytest-httpbin, + pytestCheckHook, + pythonOlder, + setuptools, + structlog, + tomli, + tornado, + awesomeversion, + packaging, + lxml, }: buildPythonPackage rec { pname = "nvchecker"; - version = "2.14"; + version = "2.14.1"; pyproject = true; disabled = pythonOlder "3.8"; @@ -30,15 +31,9 @@ buildPythonPackage rec { owner = "lilydjwg"; repo = "nvchecker"; rev = "v${version}"; - hash = "sha256-QqfF8PGY8sULv1x0blu21ucWxqhOpQ7jyLuRCzDIpco="; + hash = "sha256-V2lTGeaiwUsh8IONbZ5GQrqevJMhjeuFLTDF8UdWg8Q="; }; - postPatch = '' - # Fix try/except syntax. Remove with the next release - substituteInPlace tests/test_jq.py \ - --replace-warn "except jq" "except ImportError" - ''; - nativeBuildInputs = [ setuptools docutils @@ -50,9 +45,7 @@ buildPythonPackage rec { platformdirs tornado pycurl - ] ++ lib.optionals (pythonOlder "3.11") [ - tomli - ]; + ] ++ lib.optionals (pythonOlder "3.11") [ tomli ]; __darwinAllowLocalNetworking = true; @@ -72,13 +65,9 @@ buildPythonPackage rec { installManPage docs/_build/man/nvchecker.1 ''; - pythonImportsCheck = [ - "nvchecker" - ]; + pythonImportsCheck = [ "nvchecker" ]; - pytestFlagsArray = [ - "-m 'not needs_net'" - ]; + pytestFlagsArray = [ "-m 'not needs_net'" ]; optional-dependencies = { # vercmp = [ pyalpm ]; @@ -92,6 +81,6 @@ buildPythonPackage rec { homepage = "https://github.com/lilydjwg/nvchecker"; changelog = "https://github.com/lilydjwg/nvchecker/releases/tag/v${version}"; license = licenses.mit; - maintainers = with maintainers; [ marsam ]; + maintainers = with maintainers; [ ]; }; } |