2018-03-31 20:11:37 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi
|
|
|
|
, nose, pyparsing, decorator, six }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "PyContracts";
|
2018-04-04 19:13:59 +01:00
|
|
|
version = "1.8.3";
|
2018-03-31 20:11:37 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-04-04 19:13:59 +01:00
|
|
|
sha256 = "8e52c4ddbc015b56cc672b7c005c11f3df4fe407b832964099836fa3cccb8b9d";
|
2018-03-31 20:11:37 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ nose ];
|
|
|
|
propagatedBuildInputs = [ pyparsing decorator six ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Allows to declare constraints on function parameters and return values";
|
|
|
|
homepage = https://pypi.python.org/pypi/PyContracts;
|
|
|
|
license = licenses.lgpl2;
|
|
|
|
};
|
|
|
|
}
|