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 {
|
2021-01-12 02:28:12 +00:00
|
|
|
version = "1.3.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;
|
2021-01-12 02:28:12 +00:00
|
|
|
sha256 = "f640ae4e6fe761c3ae7138092c3dcb9b5050ec56e9cbac45d8a6b549d7ec973c";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|