9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
46 lines
820 B
Nix
46 lines
820 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
|
|
# build-system
|
|
, cython
|
|
, setuptools
|
|
|
|
# tests
|
|
, numpy
|
|
, unittestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "faster-fifo";
|
|
version = "1.4.5";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "alex-petrenko";
|
|
repo = "faster-fifo";
|
|
rev = "v${version}";
|
|
hash = "sha256-35kD+RWXwUXHG5leTVj4wY6hJAjDka69YczgSTIbCeg=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cython
|
|
setuptools
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"faster_fifo"
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
numpy
|
|
unittestCheckHook
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Faster alternative to Python's multiprocessing.Queue (IPC FIFO queue";
|
|
homepage = "https://github.com/alex-petrenko/faster-fifo";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ hexa ];
|
|
};
|
|
}
|