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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
790 B
Nix
Raw Normal View History

2019-10-25 06:54:10 +00:00
{ lib
, buildPythonPackage
, fetchPypi
, ruamel-base
, ruamel-yaml-clib
2019-10-25 06:54:10 +00:00
, isPyPy
}:
buildPythonPackage rec {
pname = "ruamel-yaml";
version = "0.17.21";
src = fetchPypi {
pname = "ruamel.yaml";
inherit version;
sha256 = "sha256-i3zml6LyEnUqNcGsQURx3BbEJMlXO+SSa1b/P10jt68=";
};
2019-10-25 06:54:10 +00:00
# Tests use relative paths
doCheck = false;
propagatedBuildInputs = [ ruamel-base ]
++ lib.optional (!isPyPy) ruamel-yaml-clib;
pythonImportsCheck = [ "ruamel.yaml" ];
2019-10-25 06:54:10 +00:00
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 ];
};
}