51 lines
1005 B
Nix
51 lines
1005 B
Nix
{
|
|
lib,
|
|
async-generator,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
importlib-metadata,
|
|
mypy-extensions,
|
|
setuptools,
|
|
trio,
|
|
typing-extensions,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "trio-typing";
|
|
version = "0.10.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "python-trio";
|
|
repo = "trio-typing";
|
|
tag = "v${version}";
|
|
hash = "sha256-6IhPdPj+bHzMyt3uyqfX2UOuCmV8lb6vmgdlc5+9/4g=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
async-generator
|
|
importlib-metadata
|
|
mypy-extensions
|
|
trio
|
|
typing-extensions
|
|
];
|
|
|
|
pythonImportsCheck = [ "trio_typing" ];
|
|
|
|
# Module has no test
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "Type hints for Trio and related projects";
|
|
homepage = "https://github.com/python-trio/trio-typing";
|
|
changelog = "https://github.com/python-trio/trio-typing/releases/tag/${src.tag}";
|
|
license = with lib.licenses; [
|
|
mit
|
|
asl20
|
|
];
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|