2019-06-17 23:13:02 +00:00
|
|
|
{ buildPythonPackage
|
|
|
|
, lib
|
|
|
|
, fetchPypi
|
2020-08-15 18:36:12 +00:00
|
|
|
, isPy27
|
2019-06-17 23:13:02 +00:00
|
|
|
, ruamel_yaml
|
|
|
|
, python-dateutil
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2020-08-16 17:31:17 +00:00
|
|
|
version = "1.1.0";
|
2019-06-17 23:13:02 +00:00
|
|
|
pname = "strictyaml";
|
2020-08-15 18:36:12 +00:00
|
|
|
disabled = isPy27;
|
2019-06-17 23:13:02 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-08-16 17:31:17 +00:00
|
|
|
sha256 = "6b07dbd4f77ab023ed4167c43ffc1b9f9354fb6075cc6ff3b91fefcbb80342ca";
|
2019-06-17 23:13:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ ruamel_yaml python-dateutil ];
|
|
|
|
|
|
|
|
# Library tested with external tool
|
|
|
|
# https://hitchdev.com/approach/contributing-to-hitch-libraries/
|
|
|
|
doCheck = false;
|
2020-08-15 18:36:12 +00:00
|
|
|
pythonImportsCheck = [ "strictyaml" ];
|
2019-06-17 23:13:02 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Strict, typed YAML parser";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://hitchdev.com/strictyaml/";
|
2019-06-17 23:13:02 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jonringer ];
|
|
|
|
};
|
|
|
|
}
|