1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
41 lines
922 B
Nix
41 lines
922 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pythonOlder,
|
|
setuptools-scm,
|
|
backports-tarfile,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "jaraco-context";
|
|
version = "6.0.1";
|
|
pyproject = true;
|
|
|
|
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 ];
|
|
};
|
|
}
|