Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 38 lines 651 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, isPy3k 5, pytest 6, pyyaml 7, ruamel_yaml 8}: 9 10buildPythonPackage rec { 11 pname = "yamale"; 12 version = "3.0.4"; 13 14 disabled = !isPy3k; 15 16 src = fetchFromGitHub { 17 owner = "23andMe"; 18 repo = pname; 19 rev = version; 20 sha256 = "1xjvah4r3gpwk4zxql3c9jpllb34k175fm6iq1zvsd2vv2fwf8s2"; 21 }; 22 23 propagatedBuildInputs = [ 24 pyyaml 25 ruamel_yaml 26 ]; 27 28 checkInputs = [ 29 pytest 30 ]; 31 32 meta = with lib; { 33 description = "A schema and validator for YAML"; 34 homepage = "https://github.com/23andMe/Yamale"; 35 license = licenses.mit; 36 maintainers = with maintainers; [ rtburns-jpl ]; 37 }; 38}