summary refs log tree commit diff
path: root/pkgs/development/python-modules/pycontracts/default.nix
blob: 23633ce248db92a3c33447c8833ace1ace1935bc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ stdenv, buildPythonPackage, fetchPypi
, nose, pyparsing, decorator, six }:

buildPythonPackage rec {
  pname = "PyContracts";
  version = "1.8.3";

  src = fetchPypi {
    inherit pname version;
    sha256 = "8e52c4ddbc015b56cc672b7c005c11f3df4fe407b832964099836fa3cccb8b9d";
  };

  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;
  };
}