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