diff options
author | Meet Barot <nowittynamesleft@gmail.com> | 2023-10-15 23:54:42 -0400 |
---|---|---|
committer | Meet Barot <nowittynamesleft@gmail.com> | 2023-10-16 00:36:25 -0400 |
commit | a76390f69cbc559d7e10f42850d4d318a361f357 (patch) | |
tree | 4db4cf418c26326ac1590237104f4ecf128a1c8f /pkgs/development/interpreters | |
parent | 19a4154a7c17cad568faf0d1fa52a99a54dff1db (diff) | |
download | nixlib-a76390f69cbc559d7e10f42850d4d318a361f357.tar nixlib-a76390f69cbc559d7e10f42850d4d318a361f357.tar.gz nixlib-a76390f69cbc559d7e10f42850d4d318a361f357.tar.bz2 nixlib-a76390f69cbc559d7e10f42850d4d318a361f357.tar.lz nixlib-a76390f69cbc559d7e10f42850d4d318a361f357.tar.xz nixlib-a76390f69cbc559d7e10f42850d4d318a361f357.tar.zst nixlib-a76390f69cbc559d7e10f42850d4d318a361f357.zip |
python3*: Add `meta.pkgConfigModules` and test
Diffstat (limited to 'pkgs/development/interpreters')
-rw-r--r-- | pkgs/development/interpreters/python/cpython/default.nix | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/development/interpreters/python/cpython/default.nix b/pkgs/development/interpreters/python/cpython/default.nix index 4e60b15ba4cb..e48c8334ff07 100644 --- a/pkgs/development/interpreters/python/cpython/default.nix +++ b/pkgs/development/interpreters/python/cpython/default.nix @@ -58,6 +58,7 @@ , reproducibleBuild ? false , pythonAttr ? "python${sourceVersion.major}${sourceVersion.minor}" , noldconfigPatch ? ./. + "/${sourceVersion.major}.${sourceVersion.minor}/no-ldconfig.patch" +, testers } @ inputs: # Note: this package is used for bootstrapping fetchurl, and thus @@ -232,7 +233,7 @@ let ''; execSuffix = stdenv.hostPlatform.extensions.executable; -in with passthru; stdenv.mkDerivation { +in with passthru; stdenv.mkDerivation (finalAttrs: { pname = "python3"; inherit src version; @@ -579,6 +580,8 @@ in with passthru; stdenv.mkDerivation { nativeBuildInputs = with pkgsBuildBuild.python3.pkgs; [ sphinxHook python_docs_theme ]; }; + + tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; }; enableParallelBuilding = true; @@ -604,8 +607,9 @@ in with passthru; stdenv.mkDerivation { high level dynamic data types. ''; license = licenses.psfl; + pkgConfigModules = [ "python3" ]; platforms = platforms.linux ++ platforms.darwin ++ platforms.windows; maintainers = with maintainers; [ fridh ]; mainProgram = executable; }; -} +}) |