1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 6 # pythonPackages 7 pytestCheckHook, 8 pythonOlder, 9 pyyaml, 10}: 11 12buildPythonPackage { 13 pname = "oyaml"; 14 version = "unstable-2021-12-03"; 15 format = "setuptools"; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = "wimglenn"; 21 repo = "oyaml"; 22 rev = "d0195070d26bd982f1e4e604bded5510dd035cd7"; 23 hash = "sha256-1rSEhiULlAweLDqUFX+JBFxe3iW9kNlRA2zjcG8MYSg="; 24 }; 25 26 propagatedBuildInputs = [ pyyaml ]; 27 28 nativeCheckInputs = [ pytestCheckHook ]; 29 30 pythonImportsCheck = [ "oyaml" ]; 31 32 meta = with lib; { 33 description = "Drop-in replacement for PyYAML which preserves dict ordering"; 34 homepage = "https://github.com/wimglenn/oyaml"; 35 license = licenses.mit; 36 maintainers = with maintainers; [ kamadorueda ]; 37 }; 38}