Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, hatch-vcs 5, hatchling 6, mypy-extensions 7, numpy 8, pydantic 9, pytest-mypy-plugins 10, pytestCheckHook 11, pythonOlder 12, typing-extensions 13, wrapt 14}: 15 16buildPythonPackage rec { 17 pname = "psygnal"; 18 version = "0.9.0"; 19 format = "pyproject"; 20 21 disabled = pythonOlder "3.8"; 22 23 src = fetchFromGitHub { 24 owner = "pyapp-kit"; 25 repo = pname; 26 rev = "refs/tags/v${version}"; 27 hash = "sha256-9rYG0XqwFJQojnvM5ygm1RVu9NbeFASns0llOGKaP+4="; 28 }; 29 30 SETUPTOOLS_SCM_PRETEND_VERSION = version; 31 32 buildInputs = [ 33 hatch-vcs 34 hatchling 35 ]; 36 37 propagatedBuildInputs = [ 38 mypy-extensions 39 typing-extensions 40 ]; 41 42 nativeCheckInputs = [ 43 numpy 44 pydantic 45 pytest-mypy-plugins 46 pytestCheckHook 47 wrapt 48 ]; 49 50 pythonImportsCheck = [ 51 "psygnal" 52 ]; 53 54 meta = with lib; { 55 description = "Implementation of Qt Signals"; 56 homepage = "https://github.com/pyapp-kit/psygnal"; 57 changelog = "https://github.com/pyapp-kit/psygnal/blob/v${version}/CHANGELOG.md"; 58 license = licenses.bsd3; 59 maintainers = with maintainers; [ SomeoneSerge ]; 60 }; 61}