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