about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/pyyaml-include/default.nix
blob: 176d402e99c195c6105248d18316e9b28215a459 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{ 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=";
  };

  env.SETUPTOOLS_SCM_PRETEND_VERSION = version;

  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 ];
  };
}