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