pythonPackages.pycontracts: Move to own file
This commit is contained in:
committed by
Frederik Rietdijk
parent
e72e47c666
commit
1c69fccc81
21
pkgs/development/python-modules/pycontracts/default.nix
Normal file
21
pkgs/development/python-modules/pycontracts/default.nix
Normal file
@@ -0,0 +1,21 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi
|
||||
, nose, pyparsing, decorator, six }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "PyContracts";
|
||||
version = "1.7.9";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0rdc9pz08885vqkazjc3lyrrghmf3jzxnlsgpn8akl808x1qrfqf";
|
||||
};
|
||||
|
||||
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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user