Files
nixpkgs/pkgs/development/python-modules/minikanren/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

63 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
toolz,
cons,
multipledispatch,
etuples,
logical-unification,
py,
pytestCheckHook,
pytest-html,
setuptools,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "minikanren";
version = "1.0.5";
pyproject = true;
src = fetchFromGitHub {
owner = "pythological";
repo = "kanren";
tag = "v${version}";
hash = "sha256-lCQ0mKT99zK5A74uoo/9bP+eFdm3MC43Fh8+P2krXrs=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [
toolz
cons
multipledispatch
etuples
logical-unification
];
nativeCheckInputs = [
py
pytestCheckHook
pytest-html
];
pytestFlags = [
"--html=testing-report.html"
"--self-contained-html"
];
pythonImportsCheck = [ "kanren" ];
meta = {
description = "Relational programming in Python";
homepage = "https://github.com/pythological/kanren";
changelog = "https://github.com/pythological/kanren/releases/tag/${src.tag}";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ Etjean ];
};
}