about summary refs log tree commit diff
path: root/pkgs/development/interpreters
diff options
context:
space:
mode:
authorJohn Ericson <git@JohnEricson.me>2023-10-16 14:51:50 -0400
committerGitHub <noreply@github.com>2023-10-16 14:51:50 -0400
commitc00c5163d211afa077872a6ffa038a35b5afeb42 (patch)
tree89ac14ad814a69beacef5e6b2add8115f66d0abb /pkgs/development/interpreters
parentd62ebb37d4845ab57c67260ea29b4afe8c1ced3a (diff)
parentb3ac258c2ae1064c4dd50656d60f73fd9da3f447 (diff)
downloadnixlib-c00c5163d211afa077872a6ffa038a35b5afeb42.tar
nixlib-c00c5163d211afa077872a6ffa038a35b5afeb42.tar.gz
nixlib-c00c5163d211afa077872a6ffa038a35b5afeb42.tar.bz2
nixlib-c00c5163d211afa077872a6ffa038a35b5afeb42.tar.lz
nixlib-c00c5163d211afa077872a6ffa038a35b5afeb42.tar.xz
nixlib-c00c5163d211afa077872a6ffa038a35b5afeb42.tar.zst
nixlib-c00c5163d211afa077872a6ffa038a35b5afeb42.zip
Merge pull request #261323 from nowittynamesleft/more-pkg-config-modules
More pkg config modules
Diffstat (limited to 'pkgs/development/interpreters')
-rw-r--r--pkgs/development/interpreters/python/cpython/default.nix8
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;
   };
-}
+})