python3Packages.aiocontextvars: init at 0.2.2
This commit is contained in:
parent
8bd736c789
commit
a3b99d4a5e
48
pkgs/development/python-modules/aiocontextvars/default.nix
Normal file
48
pkgs/development/python-modules/aiocontextvars/default.nix
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, pytestrunner
|
||||||
|
, pytest
|
||||||
|
, pytest-asyncio
|
||||||
|
, contextvars
|
||||||
|
, sqlalchemy
|
||||||
|
, isPy27
|
||||||
|
, pythonOlder
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "aiocontextvars";
|
||||||
|
version = "0.2.2";
|
||||||
|
disabled = isPy27;
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "fantix";
|
||||||
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "0a2gmrm9csiknc8n3si67sgzffkydplh9d7ga1k87ygk2aj22mmk";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
pytestrunner
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytest
|
||||||
|
pytest-asyncio
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
sqlalchemy
|
||||||
|
] ++ lib.optionals (pythonOlder "3.7") [ contextvars ];
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
pytest
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Asyncio support for PEP-567 contextvars backport";
|
||||||
|
homepage = https://github.com/fantix/aiocontextvars;
|
||||||
|
license = licenses.bsd3;
|
||||||
|
maintainers = [ maintainers.costrouc ];
|
||||||
|
};
|
||||||
|
}
|
@ -4350,6 +4350,8 @@ in {
|
|||||||
|
|
||||||
fasteners = callPackage ../development/python-modules/fasteners { };
|
fasteners = callPackage ../development/python-modules/fasteners { };
|
||||||
|
|
||||||
|
aiocontextvars = callPackage ../development/python-modules/aiocontextvars { };
|
||||||
|
|
||||||
aioeventlet = callPackage ../development/python-modules/aioeventlet { };
|
aioeventlet = callPackage ../development/python-modules/aioeventlet { };
|
||||||
|
|
||||||
aiokafka = callPackage ../development/python-modules/aiokafka { };
|
aiokafka = callPackage ../development/python-modules/aiokafka { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user