Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-19.03 23 lines 702 B view raw
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 # pull request for this patch is https://github.com/MagicStack/contextvars/pull/9 14 patches = [ ./immutables_version.patch ]; 15 propagatedBuildInputs = [ immutables ]; 16 17 meta = { 18 description = "A backport of the Python 3.7 contextvars module for Python 3.6"; 19 homepage = https://github.com/MagicStack/contextvars; 20 license = with lib.licenses; [ asl20 ]; 21 maintainers = with lib.maintainers; [ catern ]; 22 }; 23}