1{ stdenv, buildPythonPackage, fetchPypi, pythonOlder, pytest, setuptools, structlog, pytest-asyncio, pytest_xdist, flaky, tornado, pycurl }:
2
3buildPythonPackage rec {
4 pname = "nvchecker";
5 version = "1.3";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "0lgcc05c515d7692zvcmf36n2qpyn0bi018i1z3jy73abm04230j";
10 };
11
12 propagatedBuildInputs = [ setuptools structlog tornado pycurl ];
13 checkInputs = [ pytest pytest-asyncio pytest_xdist flaky ];
14
15 # Disable tests for now, because our version of pytest seems to be too new
16 # https://github.com/lilydjwg/nvchecker/commit/42a02efec84824a073601e1c2de30339d251e4c7
17 doCheck = false;
18
19 checkPhase = ''
20 py.test
21 '';
22
23 disabled = pythonOlder "3.5";
24
25 meta = with stdenv.lib; {
26 homepage = https://github.com/lilydjwg/nvchecker;
27 description = "New version checker for software";
28 license = licenses.mit;
29 maintainers = with maintainers; [ marsam ];
30 };
31}