depot/third_party/nixpkgs/pkgs/development/python-modules/pyyaml/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

44 lines
879 B
Nix

{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
cython,
setuptools,
libyaml,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "pyyaml";
version = "6.0.2";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "yaml";
repo = "pyyaml";
rev = "refs/tags/${version}";
hash = "sha256-IQoZd9Lp0ZHLAQN3PFwMsZVTsIVJyIaT9D6fpkzA8IA=";
};
build-system = [
cython
setuptools
];
buildInputs = [ libyaml ];
pythonImportsCheck = [ "yaml" ];
nativeCheckInputs = [ pytestCheckHook ];
meta = with lib; {
changelog = "https://github.com/yaml/pyyaml/blob/${src.rev}/CHANGES";
description = "Next generation YAML parser and emitter for Python";
homepage = "https://github.com/yaml/pyyaml";
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}