depot/third_party/nixpkgs/pkgs/development/python-modules/ruamel-yaml/default.nix

34 lines
803 B
Nix
Raw Normal View History

{ 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 ];
};
}