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 10:20:56 +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";
|
2021-08-30 22:22:56 +00:00
|
|
|
version = "0.17.16";
|
2018-10-26 16:59:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2021-11-01 20:59:40 +00:00
|
|
|
pname = "ruamel.yaml";
|
|
|
|
inherit version;
|
2021-08-30 22:22:56 +00:00
|
|
|
sha256 = "1a771fc92d3823682b7f0893ad56cb5a5c87c48e62b5399d6f42c8759a583b33";
|
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 ]
|
2019-10-25 06:54:10 +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
|
|
|
};
|
|
|
|
}
|