Files
nixpkgs/pkgs/development/python-modules/cons/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01: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.gpl3Only;
maintainers = with lib.maintainers; [ Etjean ];
};
}