depot/third_party/nixpkgs/pkgs/development/python-modules/ruamel-yaml/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

40 lines
935 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, setuptools
, ruamel-base
, ruamel-yaml-clib
, isPyPy
}:
buildPythonPackage rec {
pname = "ruamel-yaml";
version = "0.18.5";
pyproject = true;
src = fetchPypi {
pname = "ruamel.yaml";
inherit version;
hash = "sha256-YZF+OjWlacETOo93LhImlhv1oRmL6n4j8GoIQd6hqw4=";
};
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 = with maintainers; [ ];
};
}