1{ buildPythonPackage
2, lib
3, fetchPypi
4, isPy27
5, ruamel-yaml
6, python-dateutil
7}:
8
9buildPythonPackage rec {
10 version = "1.5.0";
11 pname = "strictyaml";
12 disabled = isPy27;
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "273a6382cc98a404d20779351cd5bb12e746397fbe18a8e9ccec4ae3c0ffa0e2";
17 };
18
19 postPatch = ''
20 substituteInPlace setup.py \
21 --replace "ruamel.yaml==0.17.4" "ruamel.yaml"
22 '';
23
24 propagatedBuildInputs = [ ruamel-yaml python-dateutil ];
25
26 # Library tested with external tool
27 # https://hitchdev.com/approach/contributing-to-hitch-libraries/
28 doCheck = false;
29 pythonImportsCheck = [ "strictyaml" ];
30
31 meta = with lib; {
32 description = "Strict, typed YAML parser";
33 homepage = "https://hitchdev.com/strictyaml/";
34 license = licenses.mit;
35 maintainers = with maintainers; [ jonringer ];
36 };
37}