50 lines
784 B
Nix
50 lines
784 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pythonOlder,
|
|
hatchling,
|
|
optype,
|
|
scipy,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "scipy-stubs";
|
|
version = "1.16.0.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "scipy";
|
|
repo = "scipy-stubs";
|
|
tag = "v${version}";
|
|
hash = "sha256-LuBypvtbLp7Zo8Rou1JwBwJjZr0BBic25dhX5Yg1Esk=";
|
|
};
|
|
|
|
disabled = pythonOlder "3.11";
|
|
|
|
build-system = [
|
|
hatchling
|
|
];
|
|
|
|
dependencies = [
|
|
optype
|
|
];
|
|
|
|
optional-dependencies = {
|
|
scipy = [
|
|
scipy
|
|
];
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
scipy
|
|
];
|
|
|
|
meta = {
|
|
description = "Typing Stubs for SciPy";
|
|
homepage = "https://github.com/scipy/scipy-stubs";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [ jolars ];
|
|
};
|
|
}
|