depot/third_party/nixpkgs/pkgs/development/python-modules/duet/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

38 lines
768 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
setuptools,
typing-extensions,
}:
buildPythonPackage rec {
pname = "duet";
version = "0.2.9";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "google";
repo = "duet";
rev = "refs/tags/v${version}";
hash = "sha256-P7JxUigD7ZyhtocV+YuAVxuUYVa4F7PpXuA1CCmcMvg=";
};
build-system = [ setuptools ];
dependencies = [ typing-extensions ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "duet" ];
meta = with lib; {
description = "Simple future-based async library for python";
homepage = "https://github.com/google/duet";
maintainers = with maintainers; [ drewrisinger ];
};
}