python312Packages.fe25519: refactor, python312Packages.ge25519: refactor (#371400)

authored by Nick Cao and committed by GitHub 399d2f74 315f5fbd

+16 -26
+8 -13
pkgs/development/python-modules/fe25519/default.nix
··· 5 5 fetchPypi, 6 6 fountains, 7 7 parts, 8 + pytest-cov-stub, 8 9 pytestCheckHook, 9 10 pythonOlder, 10 11 setuptools, 11 - wheel, 12 12 }: 13 13 14 14 buildPythonPackage rec { 15 15 pname = "fe25519"; 16 16 version = "1.5.0"; 17 - format = "pyproject"; 17 + pyproject = true; 18 18 19 19 disabled = pythonOlder "3.7"; 20 20 ··· 23 23 hash = "sha256-la+17tPHjceMTe7Wk8DGVaSptk8XJa+l7GTeqLIFDvs="; 24 24 }; 25 25 26 - nativeBuildInputs = [ 27 - setuptools 28 - wheel 29 - ]; 26 + build-system = [ setuptools ]; 30 27 31 - propagatedBuildInputs = [ 28 + dependencies = [ 32 29 bitlist 33 30 fountains 34 31 parts 35 32 ]; 36 33 37 - nativeCheckInputs = [ pytestCheckHook ]; 38 - 39 - postPatch = '' 40 - substituteInPlace pyproject.toml \ 41 - --replace "--doctest-modules --ignore=docs --cov=fe25519 --cov-report term-missing" "" 42 - ''; 34 + nativeCheckInputs = [ 35 + pytest-cov-stub 36 + pytestCheckHook 37 + ]; 43 38 44 39 pythonImportsCheck = [ "fe25519" ]; 45 40
+8 -13
pkgs/development/python-modules/ge25519/default.nix
··· 6 6 fetchPypi, 7 7 fountains, 8 8 parts, 9 + pytest-cov-stub, 9 10 pytestCheckHook, 10 11 pythonOlder, 11 12 setuptools, 12 - wheel, 13 13 }: 14 14 15 15 buildPythonPackage rec { 16 16 pname = "ge25519"; 17 17 version = "1.5.1"; 18 - format = "pyproject"; 18 + pyproject = true; 19 19 20 20 disabled = pythonOlder "3.7"; 21 21 ··· 24 24 hash = "sha256-VKDPiSdufWwrNcZSRTByFU4YGoJrm48TDm1nt4VyclA="; 25 25 }; 26 26 27 - nativeBuildInputs = [ 28 - setuptools 29 - wheel 30 - ]; 27 + build-system = [ setuptools ]; 31 28 32 - propagatedBuildInputs = [ 29 + dependencies = [ 33 30 fe25519 34 31 parts 35 32 bitlist 36 33 fountains 37 34 ]; 38 35 39 - nativeCheckInputs = [ pytestCheckHook ]; 40 - 41 - postPatch = '' 42 - substituteInPlace pyproject.toml \ 43 - --replace "--doctest-modules --ignore=docs --cov=ge25519 --cov-report term-missing" "" 44 - ''; 36 + nativeCheckInputs = [ 37 + pytest-cov-stub 38 + pytestCheckHook 39 + ]; 45 40 46 41 pythonImportsCheck = [ "ge25519" ]; 47 42