567e8dfd8e
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>
63 lines
1.1 KiB
Nix
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 ];
|
|
};
|
|
}
|