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