Something went wrong. Try again.
lol
Something went wrong. Try again.
994 B · 44 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, setuptools-scm, backports-tarfile,}:
buildPythonPackage rec { pname = "jaraco-context"; version = "6.1.0"; pyproject = true;
src = fetchFromGitHub { owner = "jaraco"; repo = "jaraco.context"; tag = "v${version}"; hash = "sha256-2UYG1xXnH1kjYNvB6EKJPRZJ1Zd0yYhTDBTdrNFN1p4="; };
postPatch = '' sed -i "/coherent.licensed/d" pyproject.toml '';
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/${src.tag}/CHANGES.rst"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; };}