Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchPypi 4, ruamel_base 5, ruamel_ordereddict 6, ruamel_yaml_clib 7, isPy3k 8, isPyPy 9}: 10 11buildPythonPackage rec { 12 pname = "ruamel.yaml"; 13 version = "0.16.10"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "099c644a778bf72ffa00524f78dd0b6476bca94a1da344130f4bf3381ce5b954"; 18 }; 19 20 # Tests use relative paths 21 doCheck = false; 22 23 propagatedBuildInputs = [ ruamel_base ] 24 ++ lib.optional (!isPy3k) ruamel_ordereddict 25 ++ lib.optional (!isPyPy) ruamel_yaml_clib; 26 27 # causes namespace clash on py27 28 dontUsePythonImportsCheck = !isPy3k; 29 pythonImportsCheck = [ 30 "ruamel.yaml" 31 "ruamel.base" 32 ]; 33 34 meta = with lib; { 35 description = "YAML parser/emitter that supports roundtrip preservation of comments, seq/map flow style, and map key order"; 36 homepage = "https://sourceforge.net/projects/ruamel-yaml/"; 37 license = licenses.mit; 38 }; 39 40}