lol

python312Packages.contextlib2: 21.6.0 -> 21.6.0-unstable-2024-05-23

+16 -14
+16 -14
pkgs/development/python-modules/contextlib2/default.nix
··· 1 1 { 2 2 lib, 3 3 buildPythonPackage, 4 - fetchPypi, 5 - pythonAtLeast, 4 + fetchFromGitHub, 5 + setuptools, 6 6 pythonOlder, 7 7 unittestCheckHook, 8 8 }: 9 9 10 - buildPythonPackage rec { 10 + buildPythonPackage { 11 11 pname = "contextlib2"; 12 - version = "21.6.0"; 13 - format = "setuptools"; 12 + version = "21.6.0-unstable-2024-05-23"; 13 + pyproject = true; 14 14 15 - # Python 3.11 not currently supported 16 - # https://github.com/jazzband/contextlib2/issues/43 17 - disabled = pythonOlder "3.6" || pythonAtLeast "3.11"; 15 + disabled = pythonOlder "3.6"; 18 16 19 - src = fetchPypi { 20 - inherit pname version; 21 - hash = "sha256-qx4r/h0B2Wjht+jZAjvFHvNQm7ohe7cwzuOCfh7oKGk="; 17 + src = fetchFromGitHub { 18 + owner = "jazzband"; 19 + repo = "contextlib2"; 20 + rev = "f64cf04df8a1f6a32ce2095192b4638d229ff25e"; 21 + hash = "sha256-HX9N8G8jl6cpEwdJ80pDcoo4osTO/f8fz5sNcY/R1Nk="; 22 22 }; 23 23 24 + build-system = [ setuptools ]; 25 + 24 26 nativeCheckInputs = [ unittestCheckHook ]; 25 27 26 28 pythonImportsCheck = [ "contextlib2" ]; 27 29 28 - meta = with lib; { 30 + meta = { 29 31 description = "Backports and enhancements for the contextlib module"; 30 32 homepage = "https://contextlib2.readthedocs.org/"; 31 - license = licenses.psfl; 32 - maintainers = [ ]; 33 + license = lib.licenses.psfl; 34 + maintainers = with lib.maintainers; [ sigmanificient ]; 33 35 }; 34 36 }