nixpkgs/pkgs/development/python-modules/pyyaml/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
823 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, cython
, libyaml
, python
}:
2018-02-03 11:12:06 +00:00
buildPythonPackage rec {
2022-02-08 21:00:52 +00:00
pname = "pyyaml";
version = "6.0";
disabled = pythonOlder "3.6";
2018-02-03 11:12:06 +00:00
src = fetchFromGitHub {
owner = "yaml";
repo = "pyyaml";
rev = version;
sha256 = "sha256-wcII32mRgRRmAgojntyxBMQkjvxU2jylCgVzlHAj2Xc=";
2018-02-03 11:12:06 +00:00
};
nativeBuildInputs = [ cython ];
2019-03-14 09:50:49 +00:00
buildInputs = [ libyaml ];
2018-02-03 11:12:06 +00:00
checkPhase = ''
runHook preCheck
PYTHONPATH="tests/lib:$PYTHONPATH" ${python.interpreter} -m test_all
runHook postCheck
'';
pythonImportsCheck = [ "yaml" ];
2018-02-03 11:12:06 +00:00
meta = with lib; {
description = "The next generation YAML parser and emitter for Python";
homepage = "https://github.com/yaml/pyyaml";
2018-02-03 11:12:06 +00:00
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}