1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pythonOlder 5, pytestCheckHook 6, setuptools 7, packaging 8, toml 9, structlog 10, appdirs 11, pytest-asyncio 12, flaky 13, tornado 14, pycurl 15, aiohttp 16, pytest-httpbin 17, docutils 18, installShellFiles 19}: 20 21buildPythonPackage rec { 22 pname = "nvchecker"; 23 version = "2.5"; 24 25 # Tests not included in PyPI tarball 26 src = fetchFromGitHub { 27 owner = "lilydjwg"; 28 repo = pname; 29 rev = "v${version}"; 30 sha256 = "0jzmpra87dlj88d20ihnva9fj81wqbbd9qbzsjwwvzdx062136mg"; 31 }; 32 33 nativeBuildInputs = [ installShellFiles docutils ]; 34 propagatedBuildInputs = [ setuptools packaging toml structlog appdirs tornado pycurl aiohttp ]; 35 checkInputs = [ pytestCheckHook pytest-asyncio flaky pytest-httpbin ]; 36 37 disabled = pythonOlder "3.7"; 38 39 postBuild = '' 40 patchShebangs docs/myrst2man.py 41 make -C docs man 42 ''; 43 44 postInstall = '' 45 installManPage docs/_build/man/nvchecker.1 46 ''; 47 48 pytestFlagsArray = [ "-m 'not needs_net'" ]; 49 50 meta = with lib; { 51 homepage = "https://github.com/lilydjwg/nvchecker"; 52 description = "New version checker for software"; 53 license = licenses.mit; 54 maintainers = with maintainers; [ marsam ]; 55 }; 56}