From c5416370d50a3bc6d03624cf85eb2329ae4b3798 Mon Sep 17 00:00:00 2001 From: Asko Soukka Date: Sat, 20 Feb 2016 00:07:15 +0200 Subject: [PATCH] pycontracts: init at 1.7.9 --- pkgs/top-level/python-packages.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 8ec275834e8f..a98bc5e93af4 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3906,6 +3906,26 @@ in modules // { }; }; + pycontracts = buildPythonPackage rec { + version = "1.7.9"; + name = "PyContracts-${version}"; + + src = pkgs.fetchurl { + url = "https://pypi.python.org/packages/source/P/PyContracts/${name}.tar.gz"; + sha256 = "0rdc9pz08885vqkazjc3lyrrghmf3jzxnlsgpn8akl808x1qrfqf"; + }; + + buildInputs = with self; [ nose ]; + + propagatedBuildInputs = with self; [ pyparsing decorator six ]; + + meta = { + description = "Allows to declare constraints on function parameters and return values."; + homepage = https://pypi.python.org/pypi/PyContracts; + license = licenses.lgpl2; + }; + }; + pycparser = buildPythonPackage rec { name = "pycparser-${version}"; version = "2.14";