1{
2 lib,
3 buildPythonPackage,
4 pythonOlder,
5 fetchFromGitHub,
6}:
7
8buildPythonPackage {
9 pname = "dpcontracts";
10 version = "unstable-2018-11-20";
11 format = "setuptools";
12 disabled = pythonOlder "3.5";
13
14 src = fetchFromGitHub {
15 owner = "deadpixi";
16 repo = "contracts";
17 rev = "45cb8542272c2ebe095c6efb97aa9407ddc8bf3c";
18 hash = "sha256-FygJPXo7lZ9tlfqY6KmPJ3PLIilMGLBr3013uj9hCEs=";
19 };
20
21 # package does not have any tests
22 doCheck = false;
23
24 pythonImportsCheck = [ "dpcontracts" ];
25
26 meta = with lib; {
27 description = "Provides a collection of decorators that makes it easy to write software using contracts";
28 homepage = "https://github.com/deadpixi/contracts";
29 license = licenses.lgpl3Only;
30 maintainers = with maintainers; [ gador ];
31 };
32}