1{ lib
2, buildPythonPackage
3, fetchPypi
4, nose
5}:
6
7buildPythonPackage rec {
8 pname = "voluptuous";
9 version = "0.12.2";
10
11 src = fetchPypi {
12 inherit pname version;
13 sha256 = "sha256-TbGsUHnbkkmCDUnIkctGYKb4yuNQSRIQq850H6v1ZRM=";
14 };
15
16 checkInputs = [
17 nose
18 ];
19
20 checkPhase = ''
21 nosetests
22 '';
23
24 pythonImportsCheck = [ "voluptuous" ];
25
26 meta = with lib; {
27 description = "Python data validation library";
28 homepage = "http://alecthomas.github.io/voluptuous/";
29 license = licenses.bsd3;
30 maintainers = with maintainers; [ fab ];
31 };
32}