mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
22 lines
580 B
Nix
22 lines
580 B
Nix
{ 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;
|
|
};
|
|
}
|