1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 pytestCheckHook,
7 pythonOlder,
8}:
9
10buildPythonPackage rec {
11 pname = "voluptuous";
12 version = "0.14.2";
13 pyproject = true;
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "alecthomas";
19 repo = "voluptuous";
20 rev = "refs/tags/${version}";
21 hash = "sha256-2a4lid9NibbvhHfs/fcyHgPRZ2HirIKuPYxMsl5oA4o=";
22 };
23
24 nativeBuildInputs = [ setuptools ];
25
26 nativeCheckInputs = [ pytestCheckHook ];
27
28 pythonImportsCheck = [ "voluptuous" ];
29
30 pytestFlagsArray = [ "voluptuous/tests/" ];
31
32 meta = with lib; {
33 description = "Python data validation library";
34 downloadPage = "https://github.com/alecthomas/voluptuous";
35 homepage = "http://alecthomas.github.io/voluptuous/";
36 changelog = "https://github.com/alecthomas/voluptuous/blob/${version}/CHANGELOG.md";
37 license = licenses.bsd3;
38 maintainers = with maintainers; [ fab ];
39 };
40}