forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdefault.nix
More file actions
40 lines (32 loc) · 953 Bytes
/
default.nix
File metadata and controls
40 lines (32 loc) · 953 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
ruamel-base,
ruamel-yaml-clib,
isPyPy,
}:
buildPythonPackage rec {
pname = "ruamel-yaml";
version = "0.19.1";
pyproject = true;
src = fetchPypi {
pname = "ruamel_yaml";
inherit version;
hash = "sha256-U+tmzSeEnv+Wjr+PC/YfRs2sLaHR81dt1MzumyXDGZM=";
};
patches = [ ./loader-max-depth.patch ];
nativeBuildInputs = [ setuptools ];
# Tests use relative paths
doCheck = false;
propagatedBuildInputs = [ ruamel-base ] ++ lib.optional (!isPyPy) ruamel-yaml-clib;
pythonImportsCheck = [ "ruamel.yaml" ];
meta = {
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/";
changelog = "https://sourceforge.net/p/ruamel-yaml/code/ci/default/tree/CHANGES";
license = lib.licenses.mit;
maintainers = [ ];
};
}