Files
AlexAntonik d004fecaa3 python3Packages.cons: fix license
Signed-off-by: AlexAntonik <antonikavv@gmail.com>
2026-10-12 18:09:23 +03:00

53 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
logical-unification,
py,
pytestCheckHook,
pytest-html,
setuptools,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "cons";
version = "0.4.7";
pyproject = true;
src = fetchFromGitHub {
owner = "pythological";
repo = "python-cons";
tag = "v${version}";
hash = "sha256-BS7lThnv+dxtztvw2aRhQa8yx2cRfrZLiXjcwvZ8QR0=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [ logical-unification ];
nativeCheckInputs = [
py
pytestCheckHook
pytest-html
];
pytestFlags = [
"--html=testing-report.html"
"--self-contained-html"
];
pythonImportsCheck = [ "cons" ];
meta = {
description = "Implementation of Lisp/Scheme-like cons in Python";
homepage = "https://github.com/pythological/python-cons";
changelog = "https://github.com/pythological/python-cons/releases/tag/${src.tag}";
license = lib.licenses.lgpl3Only;
maintainers = with lib.maintainers; [ Etjean ];
};
}