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

32 lines
786 B
Nix

{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
}:
buildPythonPackage rec {
pname = "dpcontracts";
version = "unstable-2018-11-20";
format = "setuptools";
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "deadpixi";
repo = "contracts";
rev = "45cb8542272c2ebe095c6efb97aa9407ddc8bf3c";
hash = "sha256-FygJPXo7lZ9tlfqY6KmPJ3PLIilMGLBr3013uj9hCEs=";
};
# package does not have any tests
doCheck = false;
pythonImportsCheck = [ "dpcontracts" ];
meta = with lib; {
description = "Provides a collection of decorators that makes it easy to write software using contracts";
homepage = "https://github.com/deadpixi/contracts";
license = licenses.lgpl3Only;
maintainers = with maintainers; [ gador ];
};
}