2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pythonOlder,
|
|
|
|
nose2,
|
|
|
|
msgpack,
|
|
|
|
cbor2,
|
2023-05-24 13:37:59 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "persist-queue";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "0.8.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-07-15 17:15:38 +00:00
|
|
|
sha256 = "sha256-4ZONOsbZthaSwRX43crajZox8iUGeCWF45WIpB7Ppao=";
|
2023-05-24 13:37:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
nose2
|
2023-07-15 17:15:38 +00:00
|
|
|
msgpack
|
|
|
|
cbor2
|
2023-05-24 13:37:59 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
runHook preCheck
|
|
|
|
|
|
|
|
# Don't run MySQL tests, as they require a MySQL server running
|
|
|
|
rm persistqueue/tests/test_mysqlqueue.py
|
|
|
|
|
|
|
|
nose2
|
|
|
|
|
|
|
|
runHook postCheck
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "persistqueue" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Thread-safe disk based persistent queue in Python";
|
|
|
|
homepage = "https://github.com/peter-wangxu/persist-queue";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ huantian ];
|
|
|
|
};
|
|
|
|
}
|