1{ stdenv, buildPythonPackage, fetchPypi
2, nose, pyparsing, decorator, six }:
3
4buildPythonPackage rec {
5 pname = "PyContracts";
6 version = "1.8.3";
7
8 src = fetchPypi {
9 inherit pname version;
10 sha256 = "8e52c4ddbc015b56cc672b7c005c11f3df4fe407b832964099836fa3cccb8b9d";
11 };
12
13 buildInputs = [ nose ];
14 propagatedBuildInputs = [ pyparsing decorator six ];
15
16 meta = with stdenv.lib; {
17 description = "Allows to declare constraints on function parameters and return values";
18 homepage = https://pypi.python.org/pypi/PyContracts;
19 license = licenses.lgpl2;
20 };
21}