Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / pyyaml-include / default.nix
blob176d402e99c195c6105248d18316e9b28215a459
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pytestCheckHook
5 , pyyaml
6 , setuptools
7 , setuptools-scm
8 , wheel
9 }:
11 buildPythonPackage rec {
12   pname = "pyyaml-include";
13   version = "1.3.1";
14   format = "pyproject";
16   src = fetchFromGitHub {
17     owner = "tanbro";
18     repo = "pyyaml-include";
19     rev = "refs/tags/v${version}";
20     hash = "sha256-xsNMIEBYqMVQp+H8R7XpFCwROXA8I6bFvAuHrRvC+DI=";
21   };
23   env.SETUPTOOLS_SCM_PRETEND_VERSION = version;
25   nativeBuildInputs = [
26     setuptools
27     setuptools-scm
28     wheel
29   ];
31   propagatedBuildInputs = [
32     pyyaml
33   ];
35   nativeCheckInputs = [
36     pytestCheckHook
37   ];
39   pythonImportsCheck = [ "yamlinclude" ];
41   meta = with lib; {
42     description = "Extending PyYAML with a custom constructor for including YAML files within YAML files";
43     homepage = "https://github.com/tanbro/pyyaml-include";
44     license = licenses.gpl3Plus;
45     maintainers = with maintainers; [ jonringer ];
46   };