Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 elementpath, 7 pyyaml, 8 setuptools, 9 pytestCheckHook, 10}: 11 12buildPythonPackage rec { 13 pname = "yangson"; 14 version = "1.5.6"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "CZ-NIC"; 19 repo = "yangson"; 20 rev = "refs/tags/${version}"; 21 hash = "sha256-/9MxCkcPGRNZkuwAAvlr7gtGcyxXtliski7bNtFhVBE="; 22 }; 23 24 build-system = [ poetry-core ]; 25 26 pythonRelaxDeps = [ 27 "setuptools" 28 ]; 29 30 dependencies = [ 31 elementpath 32 pyyaml 33 setuptools 34 ]; 35 36 nativeCheckInputs = [ pytestCheckHook ]; 37 38 pythonImportsCheck = [ "yangson" ]; 39 40 meta = with lib; { 41 description = "Library for working with data modelled in YANG"; 42 mainProgram = "yangson"; 43 homepage = "https://github.com/CZ-NIC/yangson"; 44 license = with licenses; [ 45 gpl3Plus 46 lgpl3Plus 47 ]; 48 maintainers = [ ]; 49 }; 50}