2021-01-25 00:26:54 -08:00
|
|
|
{ lib, buildPythonPackage, fetchPypi
|
2018-10-25 13:15:58 -07:00
|
|
|
, nose, pyparsing, decorator, six, future }:
|
2018-03-31 12:11:37 -07:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "PyContracts";
|
2020-05-09 01:37:20 -07:00
|
|
|
version = "1.8.14";
|
2018-03-31 12:11:37 -07:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-05-09 01:37:20 -07:00
|
|
|
sha256 = "03q5m595ysjrc9h57m7prrca6b9l4yrzvdijnzxnhd61p7jzbh49";
|
2018-03-31 12:11:37 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ nose ];
|
2018-10-25 13:15:58 -07:00
|
|
|
propagatedBuildInputs = [ pyparsing decorator six future ];
|
2018-03-31 12:11:37 -07:00
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2018-03-31 12:11:37 -07:00
|
|
|
description = "Allows to declare constraints on function parameters and return values";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://pypi.python.org/pypi/PyContracts";
|
2018-03-31 12:11:37 -07:00
|
|
|
license = licenses.lgpl2;
|
|
|
|
};
|
|
|
|
}
|