1{ buildPythonPackage
2, fetchFromGitHub
3, lib
4
5# pythonPackages
6, pytest
7, pyyaml
8}:
9
10buildPythonPackage rec {
11 pname = "oyaml";
12 version = "1.0";
13
14 src = fetchFromGitHub {
15 owner = "wimglenn";
16 repo = "oyaml";
17 rev = "v${version}";
18 sha256 = "0qkj8g87drvjqiqqmz36gyqiczdfcfv8zk96kkifzk4f9dl5f02j";
19 };
20
21 propagatedBuildInputs = [
22 pyyaml
23 ];
24
25 checkInputs = [
26 pytest
27 ];
28
29 checkPhase = ''
30 pytest test_oyaml.py
31 '';
32
33 meta = {
34 description = "Ordered YAML: drop-in replacement for PyYAML which preserves dict ordering";
35 homepage = "https://github.com/wimglenn/oyaml";
36 license = lib.licenses.mit;
37 maintainers = with lib.maintainers; [
38 kamadorueda
39 ];
40 };
41}