2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
hatch-vcs,
|
|
|
|
hatchling,
|
|
|
|
mypy-extensions,
|
|
|
|
numpy,
|
|
|
|
pydantic,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
toolz,
|
|
|
|
typing-extensions,
|
|
|
|
wrapt,
|
|
|
|
attrs,
|
2022-10-21 18:38:19 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-01-03 16:56:52 +00:00
|
|
|
pname = "psygnal";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.11.0";
|
2023-03-04 12:14:45 +00:00
|
|
|
format = "pyproject";
|
2022-10-21 18:38:19 +00:00
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2022-10-21 18:38:19 +00:00
|
|
|
|
2022-01-03 16:56:52 +00:00
|
|
|
src = fetchFromGitHub {
|
2023-03-04 12:14:45 +00:00
|
|
|
owner = "pyapp-kit";
|
2022-01-03 16:56:52 +00:00
|
|
|
repo = pname;
|
2022-08-12 12:06:08 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-LZkYlqplapV2jD5yV5Co8zhGdHP0dqkIAoIj1AFETbA=";
|
2022-01-03 16:56:52 +00:00
|
|
|
};
|
2022-10-21 18:38:19 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
2023-03-04 12:14:45 +00:00
|
|
|
hatch-vcs
|
|
|
|
hatchling
|
2022-10-21 18:38:19 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2023-03-04 12:14:45 +00:00
|
|
|
mypy-extensions
|
2022-10-21 18:38:19 +00:00
|
|
|
typing-extensions
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-10-21 18:38:19 +00:00
|
|
|
numpy
|
|
|
|
pydantic
|
|
|
|
pytestCheckHook
|
2023-11-16 04:20:00 +00:00
|
|
|
toolz
|
2022-10-21 18:38:19 +00:00
|
|
|
wrapt
|
2024-01-13 08:15:51 +00:00
|
|
|
attrs
|
2022-10-21 18:38:19 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "psygnal" ];
|
2022-10-21 18:38:19 +00:00
|
|
|
|
2022-01-03 16:56:52 +00:00
|
|
|
meta = with lib; {
|
2022-10-21 18:38:19 +00:00
|
|
|
description = "Implementation of Qt Signals";
|
2023-03-04 12:14:45 +00:00
|
|
|
homepage = "https://github.com/pyapp-kit/psygnal";
|
|
|
|
changelog = "https://github.com/pyapp-kit/psygnal/blob/v${version}/CHANGELOG.md";
|
2022-01-03 16:56:52 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ SomeoneSerge ];
|
|
|
|
};
|
|
|
|
}
|