3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/ruamel_yaml/default.nix

41 lines
888 B
Nix
Raw Normal View History

2019-10-25 07:54:10 +01:00
{ lib
, buildPythonPackage
, fetchPypi
, ruamel_base
, ruamel_ordereddict
2019-10-25 07:54:10 +01:00
, ruamel_yaml_clib
, isPy3k
2019-10-25 07:54:10 +01:00
, isPyPy
}:
buildPythonPackage rec {
pname = "ruamel.yaml";
version = "0.16.5";
src = fetchPypi {
inherit pname version;
sha256 = "412a6f5cfdc0525dee6a27c08f5415c7fd832a7afcb7a0ed7319628aed23d408";
};
2019-10-25 07:54:10 +01:00
# Tests use relative paths
doCheck = false;
propagatedBuildInputs = [ ruamel_base ]
2019-10-25 07:54:10 +01:00
++ lib.optional (!isPy3k) ruamel_ordereddict
++ lib.optional (!isPyPy) ruamel_yaml_clib;
2019-10-25 07:54:10 +01:00
# 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://bitbucket.org/ruamel/yaml;
license = licenses.mit;
};
}