2018-10-26 18:59:52 +02:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, ruamel_base
|
|
|
|
, typing
|
|
|
|
, ruamel_ordereddict
|
|
|
|
, isPy3k
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ruamel.yaml";
|
2018-12-02 17:31:47 +01:00
|
|
|
version = "0.15.80";
|
2018-10-26 18:59:52 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-12-02 17:31:47 +01:00
|
|
|
sha256 = "1rhlshff9csjwn64x11b9a7gbxccs1vd7rdiqwlhifjxax8k682g";
|
2018-10-26 18:59:52 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
# Tests cannot load the module to test
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ ruamel_base typing ]
|
|
|
|
++ 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;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|