nixpkgs/pkgs/development/python-modules/asyncstdlib/default.nix
2023-09-22 21:11:16 +02:00

48 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 ];
};
}