summary refs log tree commit diff
path: root/pkgs/development/python-modules/cons/default.nix
blob: 2977051d87b28164c2b9fa4b6b401c5e055f3427 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{ lib
, buildPythonPackage
, fetchFromGitHub
, logical-unification
, pytestCheckHook
, pytest-html
}:

buildPythonPackage rec {
  pname = "cons";
  version = "0.4.5";

  src = fetchFromGitHub {
    owner = "pythological";
    repo = "python-cons";
    rev = "fbeedfc8a3d1bff4ba179d492155cdd55538365e";
    sha256 = "sha256-ivHFep9iYPvyiBIZKMAzqrLGnQkeuxd0meYMZwZFFH0=";
  };

  propagatedBuildInputs = [
    logical-unification
  ];

  checkInputs = [
    pytestCheckHook
    pytest-html
  ];

  pytestFlagsArray = [
    "--html=testing-report.html"
    "--self-contained-html"
  ];

  pythonImportsCheck = [ "cons" ];

  meta = with lib; {
    description = "An implementation of Lisp/Scheme-like cons in Python";
    homepage = "https://github.com/pythological/python-cons";
    changelog = "https://github.com/pythological/python-cons/releases";
    license = licenses.gpl3Only;
    maintainers = with maintainers; [ Etjean ];
  };
}