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, 44 insertions, 19 deletions
diff --git a/pkgs/development/python-modules/nvchecker/default.nix b/pkgs/development/python-modules/nvchecker/default.nix index 73819188c49..d4d9cf1811e 100644 --- a/pkgs/development/python-modules/nvchecker/default.nix +++ b/pkgs/development/python-modules/nvchecker/default.nix @@ -1,40 +1,59 @@ { lib +, aiohttp +, appdirs , buildPythonPackage +, docutils , fetchFromGitHub -, pythonOlder +, flaky +, installShellFiles +, packaging +, pycurl +, pytest-asyncio +, pytest-httpbin , pytestCheckHook +, pythonOlder , setuptools -, packaging -, tomli , structlog -, appdirs -, pytest-asyncio -, flaky +, tomli , tornado -, pycurl -, aiohttp -, pytest-httpbin -, docutils -, installShellFiles }: buildPythonPackage rec { pname = "nvchecker"; - version = "2.6.1"; + version = "2.7"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; - # Tests not included in PyPI tarball src = fetchFromGitHub { owner = "lilydjwg"; repo = pname; rev = "v${version}"; - sha256 = "sha256-Lfo/VzsklEbv/kiKV5GbzvycwekqykRLrZBhehC1MjY="; + hash = "sha256-OPUqkHLG8PUlD5NP7q/BpKUvmAA8Jk1NvsPPVbImv0A="; }; - nativeBuildInputs = [ installShellFiles docutils ]; - propagatedBuildInputs = [ setuptools packaging tomli structlog appdirs tornado pycurl aiohttp ]; - checkInputs = [ pytestCheckHook pytest-asyncio flaky pytest-httpbin ]; + nativeBuildInputs = [ + docutils + installShellFiles + ]; - disabled = pythonOlder "3.7"; + propagatedBuildInputs = [ + aiohttp + appdirs + packaging + pycurl + setuptools + structlog + tomli + tornado + ]; + + checkInputs = [ + flaky + pytest-asyncio + pytest-httpbin + pytestCheckHook + ]; postBuild = '' patchShebangs docs/myrst2man.py @@ -45,7 +64,13 @@ buildPythonPackage rec { installManPage docs/_build/man/nvchecker.1 ''; - pytestFlagsArray = [ "-m 'not needs_net'" ]; + pythonImportsCheck = [ + "nvchecker" + ]; + + pytestFlagsArray = [ + "-m 'not needs_net'" + ]; meta = with lib; { homepage = "https://github.com/lilydjwg/nvchecker"; |