1{ lib 2, buildPythonPackage 3, fetchPypi 4, setuptools-scm 5, pyxb 6, pytestCheckHook 7}: 8 9buildPythonPackage rec { 10 pname = "yangson"; 11 version = "1.4.14"; 12 format = "setuptools"; 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "sha256-OMqtZ/kPj7ge235nuyrfCzawG6AOAqfJPzQHF8cW4Ok="; 17 }; 18 19 nativeBuildInputs = [ 20 setuptools-scm 21 ]; 22 23 propagatedBuildInputs = [ 24 pyxb 25 ]; 26 27 checkInputs = [ 28 pytestCheckHook 29 ]; 30 31 pythonImportsCheck = [ 32 "yangson" 33 ]; 34 35 meta = with lib; { 36 description = "Library for working with data modelled in YANG"; 37 homepage = "https://github.com/CZ-NIC/yangson"; 38 license = with licenses; [ 39 gpl3Plus 40 lgpl3Plus 41 ]; 42 maintainers = with maintainers; [ hexa ]; 43 }; 44}