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