2018-03-31 21:11:37 +02:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi
|
2018-10-25 22:15:58 +02:00
|
|
|
, nose, pyparsing, decorator, six, future }:
|
2018-03-31 21:11:37 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "PyContracts";
|
2018-11-18 16:40:49 +01:00
|
|
|
version = "1.8.7";
|
2018-03-31 21:11:37 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-11-18 16:40:49 +01:00
|
|
|
sha256 = "1b65jkbk9bcl10s49w9frsjcarfzi8gp22a40cz7zxry8b8yvcf0";
|
2018-03-31 21:11:37 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ nose ];
|
2018-10-25 22:15:58 +02:00
|
|
|
propagatedBuildInputs = [ pyparsing decorator six future ];
|
2018-03-31 21:11:37 +02:00
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|