2018-11-25 21:44:58 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, pythonOlder, pytest, setuptools, structlog, pytest-asyncio, pytest_xdist, flaky, tornado, pycurl }:
|
2018-10-14 19:47:14 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "nvchecker";
|
2018-11-25 21:44:58 +01:00
|
|
|
version = "1.2.7";
|
2018-10-14 19:47:14 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-11-25 21:44:58 +01:00
|
|
|
sha256 = "19qc2wwkdr701mx94r75ayq5h2jz3q620hcqaj2ng9qdgxm90940";
|
2018-10-14 19:47:14 +02:00
|
|
|
};
|
|
|
|
|
2018-11-25 21:44:58 +01:00
|
|
|
propagatedBuildInputs = [ setuptools structlog tornado pycurl ];
|
2018-10-14 19:47:14 +02:00
|
|
|
checkInputs = [ pytest pytest-asyncio pytest_xdist flaky ];
|
|
|
|
|
|
|
|
# Disable tests for now, because our version of pytest seems to be too new
|
|
|
|
# https://github.com/lilydjwg/nvchecker/commit/42a02efec84824a073601e1c2de30339d251e4c7
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|