python311Packages.pem: 21.2.0 -> 23.1.0

Diff: https://github.com/hynek/pem/compare/refs/tags/21.2.0...23.1.0

Changelog: https://github.com/hynek/pem/blob/23.1.0/CHANGELOG.md

+21 -9
+21 -9
pkgs/development/python-modules/pem/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 - , pythonOlder 4 - , fetchFromGitHub 5 - , pytestCheckHook 6 3 , certifi 7 4 , cryptography 5 + , fetchFromGitHub 6 + , hatch-fancy-pypi-readme 7 + , hatch-vcs 8 + , hatchling 8 9 , pretend 9 10 , pyopenssl 11 + , pytestCheckHook 12 + , pythonOlder 10 13 , twisted 11 14 }: 12 15 13 16 buildPythonPackage rec { 14 17 pname = "pem"; 15 - version = "21.2.0"; 18 + version = "23.1.0"; 19 + format = "pyproject"; 16 20 17 21 disabled = pythonOlder "3.7"; 18 22 19 23 src = fetchFromGitHub { 20 24 owner = "hynek"; 21 25 repo = pname; 22 - rev = version; 23 - hash = "sha256-mftLdgtgb5J4zwsb1F/4v4K7XTy4VSZBMy3zPV2f1uA="; 26 + rev = "refs/tags/${version}"; 27 + hash = "sha256-rVYlnvISGugh9qvf3mdrIyELmeOUU4g6291HeoMkoQc="; 24 28 }; 25 29 30 + SETUPTOOLS_SCM_PRETEND_VERSION = version; 31 + 32 + nativeBuildInputs = [ 33 + hatchling 34 + hatch-fancy-pypi-readme 35 + hatch-vcs 36 + ]; 37 + 26 38 nativeCheckInputs = [ 27 39 certifi 28 40 cryptography ··· 30 42 pyopenssl 31 43 pytestCheckHook 32 44 twisted 33 - twisted.optional-dependencies.tls 34 - ]; 45 + ] ++ twisted.optional-dependencies.tls; 35 46 36 47 pythonImportsCheck = [ 37 48 "pem" 38 49 ]; 39 50 40 51 meta = with lib; { 52 + description = "Easy PEM file parsing in Python"; 41 53 homepage = "https://pem.readthedocs.io/"; 42 - description = "Easy PEM file parsing in Python."; 54 + changelog = "https://github.com/hynek/pem/blob/${version}/CHANGELOG.md"; 43 55 license = licenses.mit; 44 56 maintainers = with maintainers; [ nyanotech ]; 45 57 };