Files
nixpkgs/pkgs/development/python-modules/jaraco-context/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

43 lines
955 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
setuptools-scm,
backports-tarfile,
}:
buildPythonPackage rec {
pname = "jaraco-context";
version = "6.0.1";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "jaraco";
repo = "jaraco.context";
tag = "v${version}";
hash = "sha256-WXZX2s9Qehp0F3bSv2c5lGxhhn6HKFkABbtYKizG1/8=";
};
pythonNamespaces = [ "jaraco" ];
build-system = [ setuptools-scm ];
dependencies = lib.optionals (pythonOlder "3.12") [ backports-tarfile ];
# Module has no tests
doCheck = false;
pythonImportsCheck = [ "jaraco.context" ];
meta = {
description = "Python module for context management";
homepage = "https://github.com/jaraco/jaraco.context";
changelog = "https://github.com/jaraco/jaraco.context/blob/v${version}/CHANGES.rst";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}