mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
5356420466
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \ -e 's!with lib.maintainers; \[ *\];![ ];!' \ -e 's!with maintainers; \[ *\];![ ];!'
39 lines
916 B
Nix
39 lines
916 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
setuptools,
|
|
ruamel-base,
|
|
ruamel-yaml-clib,
|
|
isPyPy,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ruamel-yaml";
|
|
version = "0.18.6";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
pname = "ruamel.yaml";
|
|
inherit version;
|
|
hash = "sha256-iyfmohfnhsb75WNNjz8RvGPg+A9qWJDyiGPZxFqsMRs=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
# 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 = [ ];
|
|
};
|
|
}
|