mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-10 07:13:38 +00:00
42 lines
832 B
Nix
42 lines
832 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pytestCheckHook,
|
|
setuptools,
|
|
typing-extensions,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "duet";
|
|
version = "0.2.9";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "google";
|
|
repo = "duet";
|
|
tag = "v${version}";
|
|
hash = "sha256-P7JxUigD7ZyhtocV+YuAVxuUYVa4F7PpXuA1CCmcMvg=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [ typing-extensions ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "duet" ];
|
|
|
|
disabledTests = [
|
|
# test fails because builder is too busy and cannot finish quickly enough
|
|
"test_repeated_sleep"
|
|
];
|
|
|
|
meta = {
|
|
description = "Simple future-based async library for python";
|
|
homepage = "https://github.com/google/duet";
|
|
maintainers = [ ];
|
|
license = lib.licenses.asl20;
|
|
};
|
|
}
|