f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
48 lines
885 B
Nix
48 lines
885 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pythonOlder,
|
|
nose2,
|
|
msgpack,
|
|
cbor2,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "persist-queue";
|
|
version = "1.0.0";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-P/t0aQLTAj/QnrRol2Cf3ubHexZB8Z4vyNmNdEvfyEU=";
|
|
};
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
nativeCheckInputs = [
|
|
nose2
|
|
msgpack
|
|
cbor2
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|