anki-bin: 24.06.3 -> 24.11 (#360722)
[NixPkgs.git] / pkgs / development / python-modules / cons / default.nix
bloba1a2b3ad856df82289b78c9a56f16ba067fe4636
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   logical-unification,
6   py,
7   pytestCheckHook,
8   pytest-html,
9   pythonOlder,
12 buildPythonPackage rec {
13   pname = "cons";
14   version = "0.4.6";
15   format = "setuptools";
17   disabled = pythonOlder "3.7";
19   src = fetchFromGitHub {
20     owner = "pythological";
21     repo = "python-cons";
22     rev = "refs/tags/v${version}";
23     hash = "sha256-XssERKiv4A8x7dZhLeFSciN6RCEfGs0or3PAQiYSPII=";
24   };
26   propagatedBuildInputs = [ logical-unification ];
28   nativeCheckInputs = [
29     py
30     pytestCheckHook
31     pytest-html
32   ];
34   pytestFlagsArray = [
35     "--html=testing-report.html"
36     "--self-contained-html"
37   ];
39   pythonImportsCheck = [ "cons" ];
41   meta = with lib; {
42     description = "Implementation of Lisp/Scheme-like cons in Python";
43     homepage = "https://github.com/pythological/python-cons";
44     changelog = "https://github.com/pythological/python-cons/releases/tag/v${version}";
45     license = licenses.gpl3Only;
46     maintainers = with maintainers; [ Etjean ];
47   };