Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / ruamel-yaml / default.nix
blob0c34a24d0864c4bba912299509489eb652baf192
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , ruamel-base
5 , ruamel-yaml-clib
6 , isPyPy
7 }:
9 buildPythonPackage rec {
10   pname = "ruamel-yaml";
11   version = "0.17.32";
13   src = fetchPypi {
14     pname = "ruamel.yaml";
15     inherit version;
16     hash = "sha256-7JOQY3YZFOFFQpcqXLptM8I7CFmrY0L2HPBwz8YA78I=";
17   };
19   # Tests use relative paths
20   doCheck = false;
22   propagatedBuildInputs = [ ruamel-base ]
23     ++ lib.optional (!isPyPy) ruamel-yaml-clib;
25   pythonImportsCheck = [ "ruamel.yaml" ];
27   meta = with lib; {
28     description = "YAML parser/emitter that supports roundtrip preservation of comments, seq/map flow style, and map key order";
29     homepage = "https://sourceforge.net/projects/ruamel-yaml/";
30     changelog = "https://sourceforge.net/p/ruamel-yaml/code/ci/default/tree/CHANGES";
31     license = licenses.mit;
32     maintainers = with maintainers; [ ];
33   };