nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 unittestCheckHook,
7}:
8
9buildPythonPackage {
10 pname = "contextlib2";
11 version = "21.6.0-unstable-2024-05-23";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "jazzband";
16 repo = "contextlib2";
17 rev = "f64cf04df8a1f6a32ce2095192b4638d229ff25e";
18 hash = "sha256-HX9N8G8jl6cpEwdJ80pDcoo4osTO/f8fz5sNcY/R1Nk=";
19 };
20
21 build-system = [ setuptools ];
22
23 nativeCheckInputs = [ unittestCheckHook ];
24
25 pythonImportsCheck = [ "contextlib2" ];
26
27 meta = {
28 description = "Backports and enhancements for the contextlib module";
29 homepage = "https://contextlib2.readthedocs.org/";
30 license = lib.licenses.psfl;
31 maintainers = with lib.maintainers; [ sigmanificient ];
32 };
33}