1{ lib
2, buildPythonPackage
3, fetchPypi
4, ruamel-base
5, ruamel-yaml-clib
6, isPyPy
7}:
8
9buildPythonPackage rec {
10 pname = "ruamel-yaml";
11 version = "0.17.32";
12
13 src = fetchPypi {
14 pname = "ruamel.yaml";
15 inherit version;
16 hash = "sha256-7JOQY3YZFOFFQpcqXLptM8I7CFmrY0L2HPBwz8YA78I=";
17 };
18
19 # Tests use relative paths
20 doCheck = false;
21
22 propagatedBuildInputs = [ ruamel-base ]
23 ++ lib.optional (!isPyPy) ruamel-yaml-clib;
24
25 pythonImportsCheck = [ "ruamel.yaml" ];
26
27 meta = with lib; {
28 description = "YAML parser/emitter that supports roundtrip preservation of comments, seq/map flow style, and map key order";
29 homepage = "https://sourceforge.net/projects/ruamel-yaml/";
30 changelog = "https://sourceforge.net/p/ruamel-yaml/code/ci/default/tree/CHANGES";
31 license = licenses.mit;
32 maintainers = with maintainers; [ ];
33 };
34}