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

58 lines
1.0 KiB
Nix

{
lib,
fetchPypi,
buildPythonPackage,
persistent,
zope-interface,
transaction,
zope-testrunner,
python,
setuptools,
}:
buildPythonPackage rec {
pname = "btrees";
version = "6.3";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-Fga9/6erKMaACYRUC2le7oSPbhWwFF2Fj/SwxiZOjtI=";
};
build-system = [ setuptools ];
dependencies = [
persistent
zope-interface
];
nativeCheckInputs = [
transaction
zope-testrunner
];
checkPhase = ''
runHook preCheck
${python.interpreter} -m zope.testrunner --test-path=src --auto-color --auto-progress
runHook postCheck
'';
pythonImportsCheck = [
"BTrees.OOBTree"
"BTrees.IOBTree"
"BTrees.IIBTree"
"BTrees.IFBTree"
];
meta = {
description = "Scalable persistent components";
homepage = "http://packages.python.org/BTrees";
changelog = "https://github.com/zopefoundation/BTrees/blob/${version}/CHANGES.rst";
license = lib.licenses.zpl21;
maintainers = [ ];
};
}