push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
{
interpreter,
writeText,
runCommand,
}:
let
python =
let
packageOverrides = self: super: {
typeddep = self.callPackage ./typeddep { };
};
in
interpreter.override {
inherit packageOverrides;
self = python;
};
pythonEnv = python.withPackages (ps: [
ps.typeddep
ps.mypy
]);
pythonScript = writeText "myscript.py" ''
from typeddep import util
s: str = util.echo("hello")
print(s)
'';
in
runCommand "${interpreter.name}-site-prefix-mypy-test" { } ''
${pythonEnv}/bin/mypy ${pythonScript}
touch $out
''

View File

@@ -0,0 +1,23 @@
{
lib,
buildPythonPackage,
pythonOlder,
}:
buildPythonPackage {
pname = "typeddep";
version = "1.3.3.7";
format = "setuptools";
src = lib.fileset.toSource {
root = ./.;
fileset = lib.fileset.unions [
./setup.py
./typeddep
];
};
disabled = pythonOlder "3.7";
}

View File

@@ -0,0 +1,18 @@
from setuptools import setup
setup(**{
'name': 'typeddep',
'version': '1.3.3.7',
'description': 'Minimal repro to test mypy and site prefixes with Nix',
'long_description': None,
'author': 'adisbladis',
'author_email': 'adisbladis@gmail.com',
'maintainer': None,
'maintainer_email': None,
'url': None,
'packages': ['typeddep'],
'package_data': {'': ['*']},
'install_requires': [],
'entry_points': {},
'python_requires': '>=3.7,<4.0',
})

View File

@@ -0,0 +1,2 @@
def echo(s: str) -> str:
return s