2018-05-08 23:14:21 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy36, immutables }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "contextvars";
|
2018-07-30 18:16:37 +01:00
|
|
|
version = "2.3";
|
2018-05-08 23:14:21 +01:00
|
|
|
disabled = !isPy36;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-07-30 18:16:37 +01:00
|
|
|
sha256 = "09fnni8cyxm070bfv9ay030qbyk0dfds5nq77s0p38h33hp08h93";
|
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";
|
|
|
|
homepage = https://github.com/MagicStack/contextvars;
|
|
|
|
license = with lib.licenses; [ asl20 ];
|
|
|
|
maintainers = with lib.maintainers; [ catern ];
|
|
|
|
};
|
|
|
|
}
|