mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 10:23:29 +00:00
388bcf6e3e
Diff: https://github.com/yaml/pyyaml/compare/6.0.1...6.0.2 Changelog: https://github.com/yaml/pyyaml/blob/6.0.2/CHANGES
45 lines
879 B
Nix
45 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 ];
|
|
};
|
|
}
|