1{ 2 lib, 3 buildPythonPackage, 4 pythonOlder, 5 fetchFromGitHub, 6 cython, 7 setuptools, 8 libyaml, 9 pytestCheckHook, 10}: 11 12buildPythonPackage rec { 13 pname = "pyyaml"; 14 version = "6.0.2"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.8"; 18 19 src = fetchFromGitHub { 20 owner = "yaml"; 21 repo = "pyyaml"; 22 tag = version; 23 hash = "sha256-IQoZd9Lp0ZHLAQN3PFwMsZVTsIVJyIaT9D6fpkzA8IA="; 24 }; 25 26 build-system = [ 27 cython 28 setuptools 29 ]; 30 31 buildInputs = [ libyaml ]; 32 33 pythonImportsCheck = [ "yaml" ]; 34 35 nativeCheckInputs = [ pytestCheckHook ]; 36 37 meta = with lib; { 38 changelog = "https://github.com/yaml/pyyaml/blob/${src.rev}/CHANGES"; 39 description = "Next generation YAML parser and emitter for Python"; 40 homepage = "https://github.com/yaml/pyyaml"; 41 license = licenses.mit; 42 maintainers = with maintainers; [ dotlambda ]; 43 }; 44}