d5f4a57cbf
GitOrigin-RevId: ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e
34 lines
858 B
Nix
34 lines
858 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, ruamel-base
|
|
, ruamel-yaml-clib
|
|
, isPyPy
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ruamel-yaml";
|
|
version = "0.17.32";
|
|
|
|
src = fetchPypi {
|
|
pname = "ruamel.yaml";
|
|
inherit version;
|
|
hash = "sha256-7JOQY3YZFOFFQpcqXLptM8I7CFmrY0L2HPBwz8YA78I=";
|
|
};
|
|
|
|
# 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/";
|
|
changelog = "https://sourceforge.net/p/ruamel-yaml/code/ci/default/tree/CHANGES";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|