diff --git a/pkgs/development/python-modules/ncclient/default.nix b/pkgs/development/python-modules/ncclient/default.nix index 2e352be412c1..010e2a5bae3f 100644 --- a/pkgs/development/python-modules/ncclient/default.nix +++ b/pkgs/development/python-modules/ncclient/default.nix @@ -1,34 +1,34 @@ { lib , buildPythonPackage -, fetchPypi +, fetchFromGitHub , paramiko , selectors2 , lxml -, nose -, rednose +, pytestCheckHook }: buildPythonPackage rec { pname = "ncclient"; - version = "0.6.10"; + version = "0.6.12"; - src = fetchPypi { - inherit pname version; - sha256 = "67b1eba5a6c7c6075746d8c33d4e8f4ded17604034c1fcd1c78996ef52bf66ff"; + src = fetchFromGitHub { + owner = pname; + repo = pname; + rev = "v${version}"; + sha256 = "1sjvqaxb54nmqljiw5bg1423msa9rg015wiix9fsm6djk3wpklmk"; }; - checkInputs = [ nose rednose ]; - propagatedBuildInputs = [ - paramiko lxml selectors2 + paramiko + lxml + selectors2 ]; - checkPhase = '' - nosetests test --rednose --verbosity=3 --with-coverage --cover-package ncclient - ''; + checkInputs = [ + pytestCheckHook + ]; - #Unfortunately the test hangs at te end - doCheck = false; + pythonImportsCheck = [ "ncclient" ]; meta = with lib; { homepage = "https://github.com/ncclient/ncclient";