1{ lib, buildPythonPackage, fetchPypi, isPy36, immutables }: 2 3buildPythonPackage rec { 4 pname = "contextvars"; 5 version = "2.4"; 6 disabled = !isPy36; 7 8 src = fetchPypi { 9 inherit pname version; 10 sha256 = "f38c908aaa59c14335eeea12abea5f443646216c4e29380d7bf34d2018e2c39e"; 11 }; 12 13 propagatedBuildInputs = [ immutables ]; 14 15 meta = { 16 description = "A backport of the Python 3.7 contextvars module for Python 3.6"; 17 homepage = "https://github.com/MagicStack/contextvars"; 18 license = with lib.licenses; [ asl20 ]; 19 maintainers = with lib.maintainers; [ catern ]; 20 }; 21}