Merge pull request #48429 from marsam/feature/init-python-nvchecker
pythonPackages.nvchecker: init at 1.1
This commit is contained in:
commit
5037d496fd
32
pkgs/development/python-modules/nvchecker/default.nix
Normal file
32
pkgs/development/python-modules/nvchecker/default.nix
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
{ stdenv, buildPythonPackage, fetchPypi, pythonOlder, pytest, setuptools, structlog, pytest-asyncio, pytest_xdist, flaky, tornado }:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "nvchecker";
|
||||||
|
version = "1.1";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "1nk9ff26s5r6v5v7w4l9110qi5kmhllvwk5kh20zyyhdvxv72m3i";
|
||||||
|
};
|
||||||
|
|
||||||
|
# tornado is not present in the tarball setup.py but is required by the executable
|
||||||
|
propagatedBuildInputs = [ setuptools structlog tornado ];
|
||||||
|
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 ];
|
||||||
|
};
|
||||||
|
}
|
@ -6,6 +6,7 @@
|
|||||||
, pretend
|
, pretend
|
||||||
, freezegun
|
, freezegun
|
||||||
, simplejson
|
, simplejson
|
||||||
|
, six
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
@ -25,8 +26,8 @@ buildPythonPackage rec {
|
|||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [ pytest pretend freezegun ];
|
checkInputs = [ pytest pretend freezegun simplejson ];
|
||||||
propagatedBuildInputs = [ simplejson ];
|
propagatedBuildInputs = [ six ];
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
rm tests/test_twisted.py*
|
rm tests/test_twisted.py*
|
||||||
|
@ -418,6 +418,8 @@ in {
|
|||||||
|
|
||||||
ntlm-auth = callPackage ../development/python-modules/ntlm-auth { };
|
ntlm-auth = callPackage ../development/python-modules/ntlm-auth { };
|
||||||
|
|
||||||
|
nvchecker = callPackage ../development/python-modules/nvchecker { };
|
||||||
|
|
||||||
oauthenticator = callPackage ../development/python-modules/oauthenticator { };
|
oauthenticator = callPackage ../development/python-modules/oauthenticator { };
|
||||||
|
|
||||||
ordered-set = callPackage ../development/python-modules/ordered-set { };
|
ordered-set = callPackage ../development/python-modules/ordered-set { };
|
||||||
|
Loading…
Reference in New Issue
Block a user