2022-03-05 16:20:37 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, logical-unification
|
2023-01-20 10:41:00 +00:00
|
|
|
, py
|
2022-03-05 16:20:37 +00:00
|
|
|
, 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
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2023-01-20 10:41:00 +00:00
|
|
|
py
|
2022-03-05 16:20:37 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|