pythonPackages.ruamel_yaml: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov
2018-10-26 12:59:52 -04:00
committed by Robert Schütz
parent b230ad0e29
commit 484a5c6152
2 changed files with 32 additions and 21 deletions

View File

@@ -0,0 +1,31 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, ruamel_base
, typing
, ruamel_ordereddict
, isPy3k
}:
buildPythonPackage rec {
pname = "ruamel.yaml";
version = "0.15.35";
src = fetchPypi {
inherit pname version;
sha256 = "0xggyfaj6vprggahf7cq8kp9j79rb7hn8ndk3bxj2sxvwhhliiwd";
};
# Tests cannot load the module to test
doCheck = false;
propagatedBuildInputs = [ ruamel_base typing ]
++ 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;
};
}