2018-10-26 17:59:52 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, ruamel_base
|
|
|
|
, ruamel_ordereddict
|
|
|
|
, isPy3k
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ruamel.yaml";
|
2019-02-14 07:37:29 +00:00
|
|
|
version = "0.15.88";
|
2018-10-26 17:59:52 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-02-14 07:37:29 +00:00
|
|
|
sha256 = "ac56193c47a31c9efa151064a9e921865cdad0f7a991d229e7197e12fe8e0cd7";
|
2018-10-26 17:59:52 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
# Tests cannot load the module to test
|
|
|
|
doCheck = false;
|
|
|
|
|
2018-12-12 13:35:32 +00:00
|
|
|
propagatedBuildInputs = [ ruamel_base ]
|
2018-10-26 17:59:52 +01:00
|
|
|
++ stdenv.lib.optional (!isPy3k) ruamel_ordereddict;
|
|
|
|
|
|
|
|
meta = with stdenv.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;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|