1{ lib 2, aiohttp 3, appdirs 4, buildPythonPackage 5, docutils 6, fetchFromGitHub 7, flaky 8, installShellFiles 9, packaging 10, pycurl 11, pytest-asyncio 12, pytest-httpbin 13, pytestCheckHook 14, pythonOlder 15, setuptools 16, structlog 17, tomli 18, tornado 19}: 20 21buildPythonPackage rec { 22 pname = "nvchecker"; 23 version = "2.10"; 24 format = "setuptools"; 25 26 disabled = pythonOlder "3.7"; 27 28 src = fetchFromGitHub { 29 owner = "lilydjwg"; 30 repo = pname; 31 rev = "v${version}"; 32 hash = "sha256-NxHeHT56JCu8Gn/B4IcvPtgGcWH8V9CUQkJeKFcGk/Q="; 33 }; 34 35 nativeBuildInputs = [ 36 docutils 37 installShellFiles 38 ]; 39 40 propagatedBuildInputs = [ 41 aiohttp 42 appdirs 43 packaging 44 pycurl 45 setuptools 46 structlog 47 tomli 48 tornado 49 ]; 50 51 checkInputs = [ 52 flaky 53 pytest-asyncio 54 pytest-httpbin 55 pytestCheckHook 56 ]; 57 58 postBuild = '' 59 patchShebangs docs/myrst2man.py 60 make -C docs man 61 ''; 62 63 postInstall = '' 64 installManPage docs/_build/man/nvchecker.1 65 ''; 66 67 pythonImportsCheck = [ 68 "nvchecker" 69 ]; 70 71 pytestFlagsArray = [ 72 "-m 'not needs_net'" 73 ]; 74 75 meta = with lib; { 76 homepage = "https://github.com/lilydjwg/nvchecker"; 77 description = "New version checker for software"; 78 license = licenses.mit; 79 maintainers = with maintainers; [ marsam ]; 80 }; 81}