depot/third_party/nixpkgs/pkgs/development/python-modules/ruamel_yaml/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

40 lines
902 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, ruamel_base
, ruamel_ordereddict
, ruamel_yaml_clib
, isPy3k
, isPyPy
}:
buildPythonPackage rec {
pname = "ruamel.yaml";
version = "0.16.5";
src = fetchPypi {
inherit pname version;
sha256 = "412a6f5cfdc0525dee6a27c08f5415c7fd832a7afcb7a0ed7319628aed23d408";
};
# Tests use relative paths
doCheck = false;
propagatedBuildInputs = [ ruamel_base ]
++ lib.optional (!isPy3k) ruamel_ordereddict
++ lib.optional (!isPyPy) ruamel_yaml_clib;
# causes namespace clash on py27
dontUsePythonImportsCheck = !isPy3k;
pythonImportsCheck = [
"ruamel.yaml"
"ruamel.base"
];
meta = with lib; {
description = "YAML parser/emitter that supports roundtrip preservation of comments, seq/map flow style, and map key order";
homepage = "https://sourceforge.net/projects/ruamel-yaml/";
license = licenses.mit;
};
}