1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 nose,
6 pyparsing,
7 decorator,
8 six,
9 future,
10}:
11
12buildPythonPackage rec {
13 pname = "pycontracts";
14 version = "1.8.14";
15
16 src = fetchPypi {
17 pname = "PyContracts";
18 inherit version;
19 sha256 = "03q5m595ysjrc9h57m7prrca6b9l4yrzvdijnzxnhd61p7jzbh49";
20 };
21
22 buildInputs = [ nose ];
23 propagatedBuildInputs = [
24 pyparsing
25 decorator
26 six
27 future
28 ];
29
30 meta = with lib; {
31 description = "Allows to declare constraints on function parameters and return values";
32 homepage = "https://pypi.python.org/pypi/PyContracts";
33 license = licenses.lgpl2;
34 };
35}