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";
|
2019-02-14 08:37:25 +01:00
|
|
|
version = "1.8.12";
|
2018-03-31 21:11:37 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-02-14 08:37:25 +01:00
|
|
|
sha256 = "e76adbd832deec28b2045a6094c5bb779a0b2cb1105a23b3efafe723e2c9937a";
|
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";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://pypi.python.org/pypi/PyContracts";
|
2018-03-31 21:11:37 +02:00
|
|
|
license = licenses.lgpl2;
|
|
|
|
};
|
|
|
|
}
|