2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchhg,
|
|
|
|
cython,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-12-06 16:07:01 +00:00
|
|
|
pname = "ruamel-yaml-clib";
|
2022-11-21 17:40:18 +00:00
|
|
|
version = "0.2.7";
|
2022-02-10 20:34:41 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchhg {
|
|
|
|
url = "http://hg.code.sf.net/p/ruamel-yaml-clib/code";
|
|
|
|
rev = version;
|
2022-11-21 17:40:18 +00:00
|
|
|
sha256 = "sha256-QNJyJWfCT8zEvrqI65zPlWIMSRZSoDwIAbFU48TfO4U=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
# no tests
|
2020-04-24 23:36:52 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2022-11-21 17:40:18 +00:00
|
|
|
# circular dependency with ruamel-yaml
|
2021-12-06 16:07:01 +00:00
|
|
|
# pythonImportsCheck = [ "_ruamel_yaml" ];
|
2023-11-16 04:20:00 +00:00
|
|
|
nativeBuildInputs = [ cython ];
|
|
|
|
|
|
|
|
# Fix incompatible function pointer conversion errors with clang 16.
|
|
|
|
patches = [ ./fix-incompatible-function-pointers.patch ];
|
|
|
|
preBuild = "cython _ruamel_yaml.pyx -3 --module-name _ruamel_yaml -I.";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
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-clib/";
|
|
|
|
license = licenses.mit;
|
2023-08-04 22:07:22 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|