depot/third_party/nixpkgs/pkgs/development/python-modules/pycontracts/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

35 lines
631 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
nose,
pyparsing,
decorator,
six,
future,
}:
buildPythonPackage rec {
pname = "pycontracts";
version = "1.8.14";
src = fetchPypi {
pname = "PyContracts";
inherit version;
sha256 = "03q5m595ysjrc9h57m7prrca6b9l4yrzvdijnzxnhd61p7jzbh49";
};
buildInputs = [ nose ];
propagatedBuildInputs = [
pyparsing
decorator
six
future
];
meta = with lib; {
description = "Allows to declare constraints on function parameters and return values";
homepage = "https://pypi.python.org/pypi/PyContracts";
license = licenses.lgpl2;
};
}