depot/third_party/nixpkgs/pkgs/development/python-modules/yamale/default.nix
Default email ae1b531433 Project import generated by Copybara.
GitOrigin-RevId: 1dc37370c489b610f8b91d7fdd40633163ffbafd
2020-10-27 01:29:36 +01:00

38 lines
651 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, isPy3k
, pytest
, pyyaml
, ruamel_yaml
}:
buildPythonPackage rec {
pname = "yamale";
version = "3.0.4";
disabled = !isPy3k;
src = fetchFromGitHub {
owner = "23andMe";
repo = pname;
rev = version;
sha256 = "1xjvah4r3gpwk4zxql3c9jpllb34k175fm6iq1zvsd2vv2fwf8s2";
};
propagatedBuildInputs = [
pyyaml
ruamel_yaml
];
checkInputs = [
pytest
];
meta = with lib; {
description = "A schema and validator for YAML";
homepage = "https://github.com/23andMe/Yamale";
license = licenses.mit;
maintainers = with maintainers; [ rtburns-jpl ];
};
}