3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/pycontracts/default.nix

22 lines
583 B
Nix
Raw Normal View History

{ stdenv, buildPythonPackage, fetchPypi
, nose, pyparsing, decorator, six, future }:
buildPythonPackage rec {
pname = "PyContracts";
version = "1.8.7";
src = fetchPypi {
inherit pname version;
sha256 = "1b65jkbk9bcl10s49w9frsjcarfzi8gp22a40cz7zxry8b8yvcf0";
};
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;
};
}