1{ lib, buildPythonPackage, fetchPypi, isPy36, immutables }: 2 3buildPythonPackage rec { 4 pname = "contextvars"; 5 version = "2.3"; 6 disabled = !isPy36; 7 8 src = fetchPypi { 9 inherit pname version; 10 sha256 = "09fnni8cyxm070bfv9ay030qbyk0dfds5nq77s0p38h33hp08h93"; 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}