depot/third_party/nixpkgs/pkgs/development/python-modules/contextvars/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

21 lines
588 B
Nix

{ lib, buildPythonPackage, fetchPypi, isPy36, immutables }:
buildPythonPackage rec {
pname = "contextvars";
version = "2.4";
disabled = !isPy36;
src = fetchPypi {
inherit pname version;
sha256 = "f38c908aaa59c14335eeea12abea5f443646216c4e29380d7bf34d2018e2c39e";
};
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 ];
};
}