mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 22:53:42 +00:00
39 lines
651 B
Nix
39 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 ];
|
|
};
|
|
}
|