ce641f4048
GitOrigin-RevId: bc5d68306b40b8522ffb69ba6cff91898c2fbbff
33 lines
803 B
Nix
33 lines
803 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, ruamel-base
|
|
, ruamel-yaml-clib
|
|
, isPyPy
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ruamel-yaml";
|
|
version = "0.17.16";
|
|
|
|
src = fetchPypi {
|
|
pname = "ruamel.yaml";
|
|
inherit version;
|
|
sha256 = "1a771fc92d3823682b7f0893ad56cb5a5c87c48e62b5399d6f42c8759a583b33";
|
|
};
|
|
|
|
# Tests use relative paths
|
|
doCheck = false;
|
|
|
|
propagatedBuildInputs = [ ruamel-base ]
|
|
++ lib.optional (!isPyPy) ruamel-yaml-clib;
|
|
|
|
pythonImportsCheck = [ "ruamel.yaml" ];
|
|
|
|
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;
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
|
};
|
|
}
|