python2Packages.pyyaml: init at 5.4.1.1

This commit is contained in:
Robert Schütz 2022-01-11 20:22:46 +00:00 committed by Frederik Rietdijk
parent ec938613e0
commit 12098119d9
2 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,38 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, cython
, libyaml
, isPy27
, python
}:
buildPythonPackage rec {
pname = "PyYAML";
version = "5.4.1.1";
src = fetchFromGitHub {
owner = "yaml";
repo = "pyyaml";
rev = version;
sha256 = "1v386gzdvsjg0mgix6v03rd0cgs9dl81qvn3m547849jm8r41dx8";
};
nativeBuildInputs = [ cython ];
buildInputs = [ libyaml ];
checkPhase = ''
runHook preCheck
PYTHONPATH=""tests/lib":$PYTHONPATH" ${python.interpreter} -m test_all
runHook postCheck
'';
pythonImportsCheck = [ "yaml" ];
meta = with lib; {
description = "The next generation YAML parser and emitter for Python";
homepage = "https://github.com/yaml/pyyaml";
license = licenses.mit;
};
}

View File

@ -122,6 +122,8 @@ with self; with super; {
pytest-xdist = callPackage ../development/python-modules/pytest-xdist/1.nix { };
pyyaml = callPackage ../development/python-modules/pyyaml/5.nix { };
qpid-python = callPackage ../development/python-modules/qpid-python { };
recoll = disabled super.recoll;