summary refs log tree commit diff
path: root/pkgs/development/python-modules/pycontracts/default.nix
blob: 6ae90ac55243fa4b97c71026230c470e6013015d (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, future }:

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

  src = fetchPypi {
    inherit pname version;
    sha256 = "0njcssvjj2aisb52xp9jmfps43iqg3fw4grj524i911p34yln2va";
  };

  buildInputs = [ nose ];
  propagatedBuildInputs = [ pyparsing decorator six future ];

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