depot/third_party/nixpkgs/pkgs/development/python-modules/dpcontracts/default.nix
Default email 3a4df29a92 Project import generated by Copybara.
GitOrigin-RevId: 3d7435c638baffaa826b85459df0fff47f12317d
2022-06-16 19:23:12 +02:00

31 lines
780 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 ];
};
}