1{ lib
2, buildPythonPackage
3, fetchPypi
4, pythonOlder
5, msgpack
6, nose2
7}:
8
9buildPythonPackage rec {
10 pname = "persist-queue";
11 version = "0.8.0";
12
13 src = fetchPypi {
14 inherit pname version;
15 sha256 = "sha256-vapNz8SyCpzh9cttoxFrbLj+N1J9mR/SQoVu8szNIY4=";
16 };
17
18 disabled = pythonOlder "3.6";
19
20 nativeCheckInputs = [
21 msgpack
22 nose2
23 ];
24
25 checkPhase = ''
26 runHook preCheck
27
28 # Don't run MySQL tests, as they require a MySQL server running
29 rm persistqueue/tests/test_mysqlqueue.py
30
31 nose2
32
33 runHook postCheck
34 '';
35
36 pythonImportsCheck = [ "persistqueue" ];
37
38 meta = with lib; {
39 description = "Thread-safe disk based persistent queue in Python";
40 homepage = "https://github.com/peter-wangxu/persist-queue";
41 license = licenses.bsd3;
42 maintainers = with maintainers; [ huantian ];
43 };
44}