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