depot/third_party/nixpkgs/pkgs/development/python-modules/persist-queue/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

46 lines
853 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, nose2
, msgpack
, cbor2
}:
buildPythonPackage rec {
pname = "persist-queue";
version = "0.8.1";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-4ZONOsbZthaSwRX43crajZox8iUGeCWF45WIpB7Ppao=";
};
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 ];
};
}