python313Packages.arrayqueues: refactor (#435997)
This commit is contained in:
@@ -1,27 +1,36 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchPypi,
|
||||
isPy3k,
|
||||
fetchFromGitHub,
|
||||
numpy,
|
||||
pytestCheckHook,
|
||||
setuptools,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "arrayqueues";
|
||||
version = "1.4.1";
|
||||
format = "setuptools";
|
||||
disabled = !isPy3k;
|
||||
pyproject = true;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-7I+5BQO/gsvTREDkBfxrMblw3JPfY48S4KI4PCGPtFY=";
|
||||
src = fetchFromGitHub {
|
||||
owner = "portugueslab";
|
||||
repo = "arrayqueues";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-tqIfpkwbJNd9jMe0YvAWz9Z8rOO80qxVM2ZcJFeAmwo=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ numpy ];
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [ numpy ];
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
pythonImportsCheck = [ "arrayqueues" ];
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/portugueslab/arrayqueues";
|
||||
description = "Multiprocessing queues for numpy arrays using shared memory";
|
||||
changelog = "https://github.com/portugueslab/arrayqueues/releases/tag/${version}";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ tbenst ];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user