1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, logical-unification
5, pytestCheckHook
6, pytest-html
7}:
8
9buildPythonPackage rec {
10 pname = "cons";
11 version = "0.4.5";
12
13 src = fetchFromGitHub {
14 owner = "pythological";
15 repo = "python-cons";
16 rev = "fbeedfc8a3d1bff4ba179d492155cdd55538365e";
17 sha256 = "sha256-ivHFep9iYPvyiBIZKMAzqrLGnQkeuxd0meYMZwZFFH0=";
18 };
19
20 propagatedBuildInputs = [
21 logical-unification
22 ];
23
24 checkInputs = [
25 pytestCheckHook
26 pytest-html
27 ];
28
29 pytestFlagsArray = [
30 "--html=testing-report.html"
31 "--self-contained-html"
32 ];
33
34 pythonImportsCheck = [ "cons" ];
35
36 meta = with lib; {
37 description = "An implementation of Lisp/Scheme-like cons in Python";
38 homepage = "https://github.com/pythological/python-cons";
39 changelog = "https://github.com/pythological/python-cons/releases";
40 license = licenses.gpl3Only;
41 maintainers = with maintainers; [ Etjean ];
42 };
43}