summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/oyaml/default.nix
blob: fe5e0894c0c51a26a1a84fa18b2572f25425429d (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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,

  # pythonPackages
  pytestCheckHook,
  pyyaml,
}:

buildPythonPackage {
  pname = "oyaml";
  version = "unstable-2021-12-03";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "wimglenn";
    repo = "oyaml";
    rev = "d0195070d26bd982f1e4e604bded5510dd035cd7";
    hash = "sha256-1rSEhiULlAweLDqUFX+JBFxe3iW9kNlRA2zjcG8MYSg=";
  };

  propagatedBuildInputs = [ pyyaml ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "oyaml" ];

  meta = {
    description = "Drop-in replacement for PyYAML which preserves dict ordering";
    homepage = "https://github.com/wimglenn/oyaml";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ kamadorueda ];
  };
}