2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonOlder,
|
|
|
|
fetchFromGitHub,
|
2024-09-19 14:19:46 +00:00
|
|
|
cython,
|
2024-06-05 15:53:02 +00:00
|
|
|
setuptools,
|
|
|
|
libyaml,
|
2024-09-19 14:19:46 +00:00
|
|
|
pytestCheckHook,
|
2021-07-21 07:28:18 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-03-30 09:31:56 +00:00
|
|
|
pname = "pyyaml";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "6.0.2";
|
|
|
|
pyproject = true;
|
2022-01-13 20:06:32 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2023-08-10 07:59:29 +00:00
|
|
|
|
2021-07-21 07:28:18 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "yaml";
|
|
|
|
repo = "pyyaml";
|
2024-09-19 14:19:46 +00:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-IQoZd9Lp0ZHLAQN3PFwMsZVTsIVJyIaT9D6fpkzA8IA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
build-system = [
|
|
|
|
cython
|
2023-08-10 07:59:29 +00:00
|
|
|
setuptools
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [ libyaml ];
|
|
|
|
|
2021-07-21 07:28:18 +00:00
|
|
|
pythonImportsCheck = [ "yaml" ];
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
2024-09-19 14:19:46 +00:00
|
|
|
changelog = "https://github.com/yaml/pyyaml/blob/${src.rev}/CHANGES";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Next generation YAML parser and emitter for Python";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/yaml/pyyaml";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|