python39Packages.ruamel_yaml: remove python2 compatility from python3 file, add SuperSandro2000 as maintainer

This commit is contained in:
Sandro Jäckel 2021-11-01 11:20:56 +01:00
parent 3a0f6d4e3d
commit 418bbe4a6c
No known key found for this signature in database
GPG key ID: B1763F8651144063
2 changed files with 7 additions and 12 deletions

View file

@ -2,9 +2,9 @@
, buildPythonPackage
, fetchPypi
, ruamel_base
, ruamel_ordereddict ? null
, ruamel_ordereddict
, ruamel_yaml_clib ? null
, isPy3k
, isPy27
, isPyPy
}:
@ -21,11 +21,11 @@ buildPythonPackage rec {
doCheck = false;
propagatedBuildInputs = [ ruamel_base ]
++ lib.optional (!isPy3k) ruamel_ordereddict
++ lib.optional isPy27 ruamel_ordereddict
++ lib.optional (!isPyPy) ruamel_yaml_clib;
# causes namespace clash on py27
dontUsePythonImportsCheck = !isPy3k;
dontUsePythonImportsCheck = isPy27;
pythonImportsCheck = [
"ruamel.yaml"
"ruamel.base"
@ -35,6 +35,6 @@ buildPythonPackage rec {
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/";
license = licenses.mit;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}

View file

@ -2,9 +2,7 @@
, buildPythonPackage
, fetchPypi
, ruamel_base
, ruamel_ordereddict ? null
, ruamel_yaml_clib ? null
, isPy3k
, ruamel_yaml_clib
, isPyPy
}:
@ -21,11 +19,8 @@ buildPythonPackage rec {
doCheck = false;
propagatedBuildInputs = [ ruamel_base ]
++ lib.optional (!isPy3k) ruamel_ordereddict
++ lib.optional (!isPyPy) ruamel_yaml_clib;
# causes namespace clash on py27
dontUsePythonImportsCheck = !isPy3k;
pythonImportsCheck = [
"ruamel.yaml"
"ruamel.base"
@ -35,6 +30,6 @@ buildPythonPackage rec {
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/";
license = licenses.mit;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}