lol

python312Packages.pynmea2: refactor

+22 -5
+22 -5
pkgs/development/python-modules/pynmea2/default.nix
··· 1 - { lib, buildPythonPackage, fetchPypi, pytestCheckHook }: 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 + , pytestCheckHook 5 + , setuptools 6 + , pythonOlder 7 + }: 2 8 3 9 buildPythonPackage rec { 4 10 pname = "pynmea2"; 5 11 version = "1.19.0"; 6 - format = "setuptools"; 12 + pyproject = true; 13 + 14 + disabled = pythonOlder "3.7"; 7 15 8 16 src = fetchPypi { 9 17 inherit pname version; 10 18 hash = "sha256-Hap5uTJ5+IfRwjXlzFx54yZEVkE4zkaYmrD0ovyXDXw="; 11 19 }; 12 20 13 - nativeCheckInputs = [ pytestCheckHook ]; 21 + build-system = [ 22 + setuptools 23 + ]; 24 + 25 + nativeCheckInputs = [ 26 + pytestCheckHook 27 + ]; 14 28 15 - pythonImportsCheck = [ "pynmea2" ]; 29 + pythonImportsCheck = [ 30 + "pynmea2" 31 + ]; 16 32 17 33 meta = { 34 + description = "Python library for the NMEA 0183 protcol"; 18 35 homepage = "https://github.com/Knio/pynmea2"; 19 - description = "Python library for the NMEA 0183 protcol"; 36 + changelog = "https://github.com/Knio/pynmea2/releases/tag/${version}"; 20 37 license = lib.licenses.mit; 21 38 maintainers = with lib.maintainers; [ oxzi ]; 22 39 };