Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib
2, buildPythonPackage
3, fetchPypi
4, python
5, pythonOlder
6, unittestCheckHook
7}:
8
9buildPythonPackage rec {
10 pname = "contextlib2";
11 version = "21.6.0";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.6";
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-qx4r/h0B2Wjht+jZAjvFHvNQm7ohe7cwzuOCfh7oKGk=";
19 };
20
21 checkInputs = [ unittestCheckHook ];
22
23 pythonImportsCheck = [
24 "contextlib2"
25 ];
26
27 meta = with lib; {
28 description = "Backports and enhancements for the contextlib module";
29 homepage = "https://contextlib2.readthedocs.org/";
30 license = licenses.psfl;
31 maintainers = with maintainers; [ ];
32 };
33}