about summary refs log tree commit diff
path: root/pkgs/development/python-modules/nvchecker/default.nix
blob: bfb15bbc6d60601e400bda00d38eda9754e53d9b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ stdenv, buildPythonPackage, fetchPypi, pythonOlder, pytest, setuptools, structlog, pytest-asyncio, flaky, tornado, pycurl, pytest-httpbin }:

buildPythonPackage rec {
  pname = "nvchecker";
  version = "1.6.post1";

  src = fetchPypi {
    inherit pname version;
    sha256 = "7d2e889a4ba2eeb75dd6649ed5e99f8cbfed45b2194657e8f46c978ec58d4175";
  };

  propagatedBuildInputs = [ setuptools structlog tornado pycurl ];
  checkInputs = [ pytest pytest-asyncio flaky pytest-httpbin ];

  # disable `test_ubuntupkg` because it requires network
  checkPhase = ''
    py.test -m "not needs_net" --ignore=tests/test_ubuntupkg.py
  '';

  disabled = pythonOlder "3.5";

  meta = with stdenv.lib; {
    homepage = "https://github.com/lilydjwg/nvchecker";
    description = "New version checker for software";
    license = licenses.mit;
    maintainers = with maintainers; [ marsam ];
  };
}