1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pytestCheckHook
5}:
6
7buildPythonPackage rec {
8 pname = "voluptuous";
9 version = "0.13.1";
10
11 src = fetchFromGitHub {
12 owner = "alecthomas";
13 repo = pname;
14 rev = version;
15 hash = "sha256-cz3Bd+/yPh+VOHxzi/W+gbDh/H5Nl/n4jvxDOirmAVk=";
16 };
17
18 checkInputs = [
19 pytestCheckHook
20 ];
21
22 pythonImportsCheck = [
23 "voluptuous"
24 ];
25
26 pytestFlagsArray = [
27 "voluptuous/tests/"
28 ];
29
30 meta = with lib; {
31 description = "Python data validation library";
32 homepage = "http://alecthomas.github.io/voluptuous/";
33 license = licenses.bsd3;
34 maintainers = with maintainers; [ fab ];
35 };
36}