2018-05-08 23:14:21 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy36, immutables }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "contextvars";
|
2019-04-01 16:42:57 +01:00
|
|
|
version = "2.4";
|
2018-05-08 23:14:21 +01:00
|
|
|
disabled = !isPy36;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-04-01 16:42:57 +01:00
|
|
|
sha256 = "f38c908aaa59c14335eeea12abea5f443646216c4e29380d7bf34d2018e2c39e";
|
2018-05-08 23:14:21 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ immutables ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A backport of the Python 3.7 contextvars module for Python 3.6";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/MagicStack/contextvars";
|
2018-05-08 23:14:21 +01:00
|
|
|
license = with lib.licenses; [ asl20 ];
|
|
|
|
maintainers = with lib.maintainers; [ catern ];
|
|
|
|
};
|
|
|
|
}
|