1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5, pythonOlder 6}: 7 8buildPythonPackage rec { 9 pname = "boolean-py"; 10 version = "4.0"; 11 format = "setuptools"; 12 13 disabled = pythonOlder "3.7"; 14 15 src = fetchFromGitHub { 16 owner = "bastikr"; 17 repo = "boolean.py"; 18 rev = "v${version}"; 19 hash = "sha256-i6aNzGDhZip9YHXLiuh9crGm2qT2toBU2xze4PDLleg="; 20 }; 21 22 nativeCheckInputs = [ 23 pytestCheckHook 24 ]; 25 26 pythonImportsCheck = [ 27 "boolean" 28 ]; 29 30 meta = with lib; { 31 description = "Implements boolean algebra in one module"; 32 homepage = "https://github.com/bastikr/boolean.py"; 33 license = licenses.bsd2; 34 maintainers = with maintainers; [ ]; 35 }; 36}