2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
2024-10-04 16:56:33 +00:00
|
|
|
fetchFromGitHub,
|
|
|
|
setuptools,
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonOlder,
|
|
|
|
unittestCheckHook,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
buildPythonPackage {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "contextlib2";
|
2024-10-04 16:56:33 +00:00
|
|
|
version = "21.6.0-unstable-2024-05-23";
|
|
|
|
pyproject = true;
|
2022-01-13 20:06:32 +00:00
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jazzband";
|
|
|
|
repo = "contextlib2";
|
|
|
|
rev = "f64cf04df8a1f6a32ce2095192b4638d229ff25e";
|
|
|
|
hash = "sha256-HX9N8G8jl6cpEwdJ80pDcoo4osTO/f8fz5sNcY/R1Nk=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ unittestCheckHook ];
|
2022-01-13 20:06:32 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "contextlib2" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
meta = {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Backports and enhancements for the contextlib module";
|
|
|
|
homepage = "https://contextlib2.readthedocs.org/";
|
2024-10-04 16:56:33 +00:00
|
|
|
license = lib.licenses.psfl;
|
|
|
|
maintainers = with lib.maintainers; [ sigmanificient ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|