summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/yamlcore/default.nix
blob: ce1d590ac54e3406678bb6717f9013ee14e0551d (plain)
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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  pyyaml,
  pytestCheckHook,
}:

buildPythonPackage (finalAttrs: {
  pname = "yamlcore";
  version = "0.0.4";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "perlpunk";
    repo = "pyyaml-core";
    tag = "v${finalAttrs.version}";
    hash = "sha256-TBVNmuhBfEo9HmDkalnn6VDVHF+sh/MIZ8f46Zdyxw8=";
  };

  build-system = [
    setuptools
  ];

  dependencies = [
    pyyaml
  ];

  nativeCheckInputs = [ pytestCheckHook ];
  enabledTestPaths = [ "tests/*.py" ];

  pythonImportsCheck = [ "yamlcore" ];

  meta = {
    description = "YAML 1.2 Support for PyYAML";
    homepage = "https://github.com/perlpunk/pyyaml-core";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ gonsolo ];
  };
})