e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
45 lines
887 B
Nix
45 lines
887 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 = with maintainers; [ jonringer ];
|
|
};
|
|
}
|