2019-10-25 06:54:10 +00:00
|
|
|
{ lib
|
2018-10-26 16:59:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-11-01 20:58:01 +00:00
|
|
|
, ruamel-base
|
2021-11-01 21:00:09 +00:00
|
|
|
, ruamel-yaml-clib
|
2019-10-25 06:54:10 +00:00
|
|
|
, isPyPy
|
2018-10-26 16:59:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-11-01 20:59:40 +00:00
|
|
|
pname = "ruamel-yaml";
|
2022-02-18 23:46:56 +00:00
|
|
|
version = "0.17.21";
|
2018-10-26 16:59:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2021-11-01 20:59:40 +00:00
|
|
|
pname = "ruamel.yaml";
|
|
|
|
inherit version;
|
2022-02-18 23:46:56 +00:00
|
|
|
sha256 = "sha256-i3zml6LyEnUqNcGsQURx3BbEJMlXO+SSa1b/P10jt68=";
|
2018-10-26 16:59:52 +00:00
|
|
|
};
|
|
|
|
|
2019-10-25 06:54:10 +00:00
|
|
|
# Tests use relative paths
|
2018-10-26 16:59:52 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2021-11-01 20:58:01 +00:00
|
|
|
propagatedBuildInputs = [ ruamel-base ]
|
2021-11-01 21:00:09 +00:00
|
|
|
++ lib.optional (!isPyPy) ruamel-yaml-clib;
|
2018-10-26 16:59:52 +00:00
|
|
|
|
2021-11-01 20:59:40 +00:00
|
|
|
pythonImportsCheck = [ "ruamel.yaml" ];
|
2019-10-25 06:54:10 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2018-10-26 16:59:52 +00:00
|
|
|
description = "YAML parser/emitter that supports roundtrip preservation of comments, seq/map flow style, and map key order";
|
2020-02-18 04:05:21 +00:00
|
|
|
homepage = "https://sourceforge.net/projects/ruamel-yaml/";
|
2018-10-26 16:59:52 +00:00
|
|
|
license = licenses.mit;
|
2021-11-01 10:20:56 +00:00
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
2018-10-26 16:59:52 +00:00
|
|
|
};
|
|
|
|
}
|