depot/third_party/nixpkgs/pkgs/development/python-modules/oyaml/default.nix
Default email 9c6d255489 Project import generated by Copybara.
GitOrigin-RevId: 8133b9cb5f7c00d4fe31c8c2c4b525bc2650bfc0
2020-10-16 20:44:37 +00:00

41 lines
714 B
Nix

{ buildPythonPackage
, fetchFromGitHub
, lib
# pythonPackages
, pytest
, pyyaml
}:
buildPythonPackage rec {
pname = "oyaml";
version = "1.0";
src = fetchFromGitHub {
owner = "wimglenn";
repo = "oyaml";
rev = "v${version}";
sha256 = "0qkj8g87drvjqiqqmz36gyqiczdfcfv8zk96kkifzk4f9dl5f02j";
};
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
];
};
}