depot/third_party/nixpkgs/pkgs/development/python-modules/ruamel_yaml/default.nix
Default email 6ae7ad3cc5 Project import generated by Copybara.
GitOrigin-RevId: a322b32e9d74fb476944ff6cfb55833dc69cfaaa
2020-11-19 01:13:47 +01:00

40 lines
903 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, ruamel_base
, ruamel_ordereddict
, ruamel_yaml_clib
, isPy3k
, isPyPy
}:
buildPythonPackage rec {
pname = "ruamel.yaml";
version = "0.16.12";
src = fetchPypi {
inherit pname version;
sha256 = "076cc0bc34f1966d920a49f18b52b6ad559fbe656a0748e3535cf7b3f29ebf9e";
};
# 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;
};
}