nixpkgs-suyu/pkgs/development/python-modules/ruamel-yaml/default.nix
2021-12-14 12:03:56 -08:00

33 lines
803 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, ruamel-base
, ruamel-yaml-clib
, isPyPy
}:
buildPythonPackage rec {
pname = "ruamel-yaml";
version = "0.17.17";
src = fetchPypi {
pname = "ruamel.yaml";
inherit version;
sha256 = "9751de4cbb57d4bfbf8fc394e125ed4a2f170fbff3dc3d78abf50be85924f8be";
};
# 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/";
license = licenses.mit;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}