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