2022-01-03 16:56:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2023-03-04 12:14:45 +00:00
|
|
|
, hatch-vcs
|
|
|
|
, hatchling
|
|
|
|
, mypy-extensions
|
2022-10-21 18:38:19 +00:00
|
|
|
, numpy
|
|
|
|
, pydantic
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2022-01-03 16:56:52 +00:00
|
|
|
, typing-extensions
|
2022-10-21 18:38:19 +00:00
|
|
|
, wrapt
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-01-03 16:56:52 +00:00
|
|
|
pname = "psygnal";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "0.9.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}";
|
2023-05-24 13:37:59 +00:00
|
|
|
hash = "sha256-9rYG0XqwFJQojnvM5ygm1RVu9NbeFASns0llOGKaP+4=";
|
2022-01-03 16:56:52 +00:00
|
|
|
};
|
2022-10-21 18:38:19 +00:00
|
|
|
|
2022-01-03 16:56:52 +00:00
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
|
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
|
|
|
|
wrapt
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"psygnal"
|
|
|
|
];
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|