1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

pythonPackages.ruamel_yaml: fix build

This commit is contained in:
Jonathan Ringer 2019-10-24 23:54:10 -07:00 committed by Frederik Rietdijk
parent 5bd7d2c233
commit a4fc8c4b93

View file

@ -1,9 +1,11 @@
{ stdenv
{ lib
, buildPythonPackage
, fetchPypi
, ruamel_base
, ruamel_ordereddict
, ruamel_yaml_clib
, isPy3k
, isPyPy
}:
buildPythonPackage rec {
@ -15,13 +17,21 @@ buildPythonPackage rec {
sha256 = "412a6f5cfdc0525dee6a27c08f5415c7fd832a7afcb7a0ed7319628aed23d408";
};
# Tests cannot load the module to test
# Tests use relative paths
doCheck = false;
propagatedBuildInputs = [ ruamel_base ]
++ stdenv.lib.optional (!isPy3k) ruamel_ordereddict;
++ lib.optional (!isPy3k) ruamel_ordereddict
++ lib.optional (!isPyPy) ruamel_yaml_clib;
meta = with stdenv.lib; {
# causes namespace clash on py27
dontUsePythonImportsCheck = !isPy3k;
pythonImportsCheck = [
"ruamel.yaml"
"ruamel.base"
];
meta = with 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;