@@ -5,18 +5,20 @@
55# * meta: Standard nixpkgs metadata.
66# * application: Whether this package is a python library or an
77# application which happens to be written in python.
8−pythonPackages: { src, info, meta ? {}, application ? false }: let
8+# * doCheck: Whether to run the test suites.
9+pythonPackages:
10+{ src, info, meta ? {}, application ? false, doCheck ? true }: let
911 build = if application
1012 then pythonPackages.buildPythonApplication
1113 else pythonPackages.buildPythonPackage;
1214in build {
1315 inherit (info) pname version;
1416
15− inherit src meta;
17+ inherit src meta doCheck;
1618
1719 nativeBuildInputs = map (p: pythonPackages.${p}) (
1820 (info.setup_requires or []) ++
19− (info.tests_require or []));
21+ (if doCheck then (info.tests_require or []) else []));
2022
2123 propagatedBuildInputs = map (p: pythonPackages.${p})
2224 (info.install_requires or []);