depot/third_party/nixpkgs/pkgs/development/python-modules/pyyaml-include/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

42 lines
857 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pyyaml,
setuptools,
setuptools-scm,
wheel,
}:
buildPythonPackage rec {
pname = "pyyaml-include";
version = "1.3.1";
format = "pyproject";
src = fetchFromGitHub {
owner = "tanbro";
repo = "pyyaml-include";
rev = "refs/tags/v${version}";
hash = "sha256-xsNMIEBYqMVQp+H8R7XpFCwROXA8I6bFvAuHrRvC+DI=";
};
nativeBuildInputs = [
setuptools
setuptools-scm
wheel
];
propagatedBuildInputs = [ pyyaml ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "yamlinclude" ];
meta = with lib; {
description = "Extending PyYAML with a custom constructor for including YAML files within YAML files";
homepage = "https://github.com/tanbro/pyyaml-include";
license = licenses.gpl3Plus;
maintainers = [ ];
};
}