Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 40 lines 917 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, ruamel_base 5, ruamel_ordereddict ? null 6, ruamel_yaml_clib ? null 7, isPy3k 8, isPyPy 9}: 10 11buildPythonPackage rec { 12 pname = "ruamel.yaml"; 13 version = "0.16.13"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "bb48c514222702878759a05af96f4b7ecdba9b33cd4efcf25c86b882cef3a942"; 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}