depot/third_party/nixpkgs/pkgs/development/python-modules/asyncstdlib/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

47 lines
963 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, typing-extensions
, flit-core
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "asyncstdlib";
version = "3.10.8";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "maxfischer2781";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-7HQFyIR+NWRzbFkzkZiuEQotZfCXpCzrWfWIFg1lWv4=";
};
nativeBuildInputs = [
flit-core
];
propagatedBuildInputs = [
typing-extensions
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"asyncstdlib"
];
meta = with lib; {
description = "Python library that extends the Python asyncio standard library";
homepage = "https://asyncstdlib.readthedocs.io/";
changelog = "https://github.com/maxfischer2781/asyncstdlib/releases/tag/v${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}