python3.tests.nix-pythonprefix-mypy: Avoid unnecessary rebuilds

E.g. when the Nix is changed
This commit is contained in:
Silvan Mosberger 2024-06-14 21:27:46 +02:00
parent ce53448104
commit 3f2e484083

View File

@ -1,4 +1,4 @@
{ buildPythonPackage, pythonOlder }:
{ lib, buildPythonPackage, pythonOlder }:
buildPythonPackage {
@ -6,7 +6,13 @@ buildPythonPackage {
pname = "typeddep";
version = "1.3.3.7";
src = ./.;
src = lib.fileset.toSource {
root = ./.;
fileset = lib.fileset.unions [
./setup.py
./typeddep
];
};
disabled = pythonOlder "3.7";