Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 lxml, 6 paramiko, 7 pytestCheckHook, 8 pythonOlder, 9 six, 10}: 11 12buildPythonPackage rec { 13 pname = "ncclient"; 14 version = "0.6.15"; 15 format = "setuptools"; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = pname; 21 repo = pname; 22 rev = "refs/tags/v${version}"; 23 hash = "sha256-mdFoSTUS4QhY05rY0fqKTpRQTR9oLvOMTVr4kWJbiUQ="; 24 }; 25 26 propagatedBuildInputs = [ 27 paramiko 28 lxml 29 six 30 ]; 31 32 nativeCheckInputs = [ pytestCheckHook ]; 33 34 pythonImportsCheck = [ "ncclient" ]; 35 36 meta = with lib; { 37 description = "Python library for NETCONF clients"; 38 homepage = "https://github.com/ncclient/ncclient"; 39 changelog = "https://github.com/ncclient/ncclient/releases/tag/v${version}"; 40 license = licenses.asl20; 41 maintainers = with maintainers; [ xnaveira ]; 42 }; 43}