1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4
5 # pythonPackages
6, pytestCheckHook
7, pythonOlder
8, pyyaml
9}:
10
11buildPythonPackage rec {
12 pname = "oyaml";
13 version = "unstable-2021-12-03";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchFromGitHub {
19 owner = "wimglenn";
20 repo = "oyaml";
21 rev = "d0195070d26bd982f1e4e604bded5510dd035cd7";
22 hash = "sha256-1rSEhiULlAweLDqUFX+JBFxe3iW9kNlRA2zjcG8MYSg=";
23 };
24
25 propagatedBuildInputs = [
26 pyyaml
27 ];
28
29 nativeCheckInputs = [
30 pytestCheckHook
31 ];
32
33 pythonImportsCheck = [
34 "oyaml"
35 ];
36
37 meta = with lib; {
38 description = "Drop-in replacement for PyYAML which preserves dict ordering";
39 homepage = "https://github.com/wimglenn/oyaml";
40 license = licenses.mit;
41 maintainers = with maintainers; [ kamadorueda ];
42 };
43}