1{ stdenv, buildPythonPackage, fetchPypi
2, nose, pyparsing, decorator, six, future }:
3
4buildPythonPackage rec {
5 pname = "PyContracts";
6 version = "1.8.12";
7
8 src = fetchPypi {
9 inherit pname version;
10 sha256 = "e76adbd832deec28b2045a6094c5bb779a0b2cb1105a23b3efafe723e2c9937a";
11 };
12
13 buildInputs = [ nose ];
14 propagatedBuildInputs = [ pyparsing decorator six future ];
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}