Files
nixpkgs/pkgs/development/python-modules/aiocontextvars/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

44 lines
812 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
pytestCheckHook,
pytest-asyncio,
isPy27,
}:
buildPythonPackage rec {
pname = "aiocontextvars";
version = "0.2.2";
pyproject = true;
disabled = isPy27;
src = fetchFromGitHub {
owner = "fantix";
repo = "aiocontextvars";
rev = "v${version}";
hash = "sha256-s1YhpBLz+YNmUO+0BOltfjr3nz4m6mERszNqlmquTyg=";
};
postPatch = ''
substituteInPlace setup.py \
--replace-fail "'pytest-runner'," ""
'';
build-system = [ setuptools ];
nativeCheckInputs = [
pytestCheckHook
pytest-asyncio
];
meta = {
description = "Asyncio support for PEP-567 contextvars backport";
homepage = "https://github.com/fantix/aiocontextvars";
license = lib.licenses.bsd3;
maintainers = [ ];
};
}