mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 14:16:35 +01:00
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
33 lines
763 B
Nix
33 lines
763 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
unittestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage {
|
|
pname = "contextlib2";
|
|
version = "21.6.0-unstable-2024-05-23";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jazzband";
|
|
repo = "contextlib2";
|
|
rev = "f64cf04df8a1f6a32ce2095192b4638d229ff25e";
|
|
hash = "sha256-HX9N8G8jl6cpEwdJ80pDcoo4osTO/f8fz5sNcY/R1Nk=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
nativeCheckInputs = [ unittestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "contextlib2" ];
|
|
|
|
meta = {
|
|
description = "Backports and enhancements for the contextlib module";
|
|
homepage = "https://contextlib2.readthedocs.org/";
|
|
license = lib.licenses.psfl;
|
|
maintainers = with lib.maintainers; [ sigmanificient ];
|
|
};
|
|
}
|