pythonPackages.oyaml: init at 0.9

This commit is contained in:
Kevin Amado 2019-12-28 03:59:19 -05:00
parent 8b2b1d125d
commit 4f8eba122a
No known key found for this signature in database
GPG key ID: 04D0CEAF916A9A40
2 changed files with 43 additions and 0 deletions

View file

@ -0,0 +1,41 @@
{ buildPythonPackage
, fetchFromGitHub
, lib
# pythonPackages
, pytest
, pyyaml
}:
buildPythonPackage rec {
pname = "oyaml";
version = "0.9";
src = fetchFromGitHub {
owner = "wimglenn";
repo = "oyaml";
rev = "v${version}";
sha256 = "13xjdym0p0jh9bvyjsbhi4yznlp68bamy3xi4w5wpcrzlcq6cfh9";
};
propagatedBuildInputs = [
pyyaml
];
checkInputs = [
pytest
];
checkPhase = ''
pytest test_oyaml.py
'';
meta = {
description = "Ordered YAML: drop-in replacement for PyYAML which preserves dict ordering";
homepage = "https://github.com/wimglenn/oyaml";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
kamadorueda
];
};
}

View file

@ -2839,6 +2839,8 @@ in {
oset = callPackage ../development/python-modules/oset { };
oyaml = callPackage ../development/python-modules/oyaml { };
pamela = callPackage ../development/python-modules/pamela { };
paperspace = callPackage ../development/python-modules/paperspace { };