1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 elementpath, 7 pyyaml, 8 pytestCheckHook, 9}: 10 11buildPythonPackage rec { 12 pname = "yangson"; 13 version = "1.6.3"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "CZ-NIC"; 18 repo = "yangson"; 19 tag = version; 20 hash = "sha256-WOeSGGOd5+g+8dSyeml+mdehEjaSHtUkNSdkGl4xSao="; 21 }; 22 23 build-system = [ poetry-core ]; 24 25 dependencies = [ 26 elementpath 27 pyyaml 28 ]; 29 30 pythonRelaxDeps = [ "elementpath" ]; 31 32 nativeCheckInputs = [ pytestCheckHook ]; 33 34 pythonImportsCheck = [ "yangson" ]; 35 36 meta = with lib; { 37 description = "Library for working with data modelled in YANG"; 38 mainProgram = "yangson"; 39 homepage = "https://github.com/CZ-NIC/yangson"; 40 license = with licenses; [ 41 gpl3Plus 42 lgpl3Plus 43 ]; 44 maintainers = [ ]; 45 }; 46}