summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/contextlib2/default.nix
blob: 3fb0cb05c8d79ecca713216380414c0302f434db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  unittestCheckHook,
}:

buildPythonPackage {
  pname = "contextlib2";
  version = "21.6.0-unstable-2024-05-23";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "jazzband";
    repo = "contextlib2";
    rev = "f64cf04df8a1f6a32ce2095192b4638d229ff25e";
    hash = "sha256-HX9N8G8jl6cpEwdJ80pDcoo4osTO/f8fz5sNcY/R1Nk=";
  };

  build-system = [ setuptools ];

  nativeCheckInputs = [ unittestCheckHook ];

  pythonImportsCheck = [ "contextlib2" ];

  meta = {
    description = "Backports and enhancements for the contextlib module";
    homepage = "https://contextlib2.readthedocs.org/";
    license = lib.licenses.psfl;
    maintainers = with lib.maintainers; [ sigmanificient ];
  };
}