nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 hatchling,
6 pytestCheckHook,
7}:
8
9buildPythonPackage (finalAttrs: {
10 pname = "txaio";
11 version = "25.12.2";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "crossbario";
16 repo = "txaio";
17 tag = "v${lib.replaceString "." "_" finalAttrs.version}";
18 hash = "sha256-/vlkjSOlQYbRpjMySBzoSBSXm0yxWSHmzIF3ZfFIR64=";
19 };
20
21 build-system = [
22 hatchling
23 ];
24
25 nativeCheckInputs = [
26 pytestCheckHook
27 ];
28
29 pythonImportsCheck = [ "txaio" ];
30
31 meta = {
32 description = "Utilities to support code that runs unmodified on Twisted and asyncio";
33 homepage = "https://github.com/crossbario/txaio";
34 changelog = "https://github.com/crossbario/txaio/blob/${finalAttrs.src.tag}/docs/releases.rst";
35 license = lib.licenses.mit;
36 maintainers = [ ];
37 };
38})