Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 714 B view raw
1{ buildPythonPackage 2, fetchFromGitHub 3, lib 4 5# pythonPackages 6, pytest 7, pyyaml 8}: 9 10buildPythonPackage rec { 11 pname = "oyaml"; 12 version = "0.9"; 13 14 src = fetchFromGitHub { 15 owner = "wimglenn"; 16 repo = "oyaml"; 17 rev = "v${version}"; 18 sha256 = "13xjdym0p0jh9bvyjsbhi4yznlp68bamy3xi4w5wpcrzlcq6cfh9"; 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}