depot/third_party/nixpkgs/pkgs/development/python-modules/btrees/default.nix
Default email 686ce24904 Project import generated by Copybara.
GitOrigin-RevId: ac1f5b72a9e95873d1de0233fddcb56f99884b37
2023-02-16 18:41:37 +01:00

54 lines
996 B
Nix

{ lib
, fetchPypi
, buildPythonPackage
, persistent
, zope_interface
, transaction
, zope_testrunner
, python
, pythonOlder
}:
buildPythonPackage rec {
pname = "btrees";
version = "5.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "BTrees";
inherit version;
hash = "sha256-/d+KTcwCU+OQJ7qzgKLiDUeuNwoySFQW8qZq2a4aQ/o=";
};
propagatedBuildInputs = [
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 = with lib; {
description = "Scalable persistent components";
homepage = "http://packages.python.org/BTrees";
license = licenses.zpl21;
maintainers = with maintainers; [ ];
};
}