nixpkgs/pkgs/development/python-modules/ruamel_yaml/default.nix
2019-02-17 14:40:41 +01:00

30 lines
702 B
Nix

{ stdenv
, buildPythonPackage
, fetchPypi
, ruamel_base
, ruamel_ordereddict
, isPy3k
}:
buildPythonPackage rec {
pname = "ruamel.yaml";
version = "0.15.88";
src = fetchPypi {
inherit pname version;
sha256 = "ac56193c47a31c9efa151064a9e921865cdad0f7a991d229e7197e12fe8e0cd7";
};
# Tests cannot load the module to test
doCheck = false;
propagatedBuildInputs = [ ruamel_base ]
++ stdenv.lib.optional (!isPy3k) ruamel_ordereddict;
meta = with stdenv.lib; {
description = "YAML parser/emitter that supports roundtrip preservation of comments, seq/map flow style, and map key order";
homepage = https://bitbucket.org/ruamel/yaml;
license = licenses.mit;
};
}