Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758{ lib, stdenv, buildPythonPackage, fetchFromGitHub,
# build-system setuptools,
# tests aiomisc-pytest, pytest-rerunfailures, pytestCheckHook,}:
buildPythonPackage (finalAttrs: { pname = "caio"; version = "0.12.9"; pyproject = true; __structuredAttrs = true;
src = fetchFromGitHub { owner = "mosquito"; repo = "caio"; tag = finalAttrs.version; hash = "sha256-uP4g9dq+eIG6mYJM+/vJthMFSyuRLjaIYp77hTf9Yog="; };
postPatch = '' substituteInPlace pyproject.toml \ --replace-fail \ 'version = "0.10.2"' \ 'version = "${finalAttrs.version}"' '';
build-system = [ setuptools ];
env.NIX_CFLAGS_COMPILE = toString ( lib.optionals stdenv.cc.isClang [ "-Wno-error=implicit-function-declaration" ] );
pythonImportsCheck = [ "caio" ];
nativeCheckInputs = [ aiomisc-pytest pytest-rerunfailures pytestCheckHook ];
meta = { description = "File operations with asyncio support"; homepage = "https://github.com/mosquito/caio"; changelog = "https://github.com/mosquito/caio/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ fab ]; };})