Merge pull request #196356 from r-ryantm/auto-update/python310Packages.psygnal

python310Packages.psygnal: 0.3.5 -> 0.5.0

authored by Fabian Affolter and committed by GitHub ea2c6a6d ea13f7cd

+47 -16
+47 -16
pkgs/development/python-modules/psygnal/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 3 , fetchFromGitHub 4 - , wheel 5 - , setuptools 6 - , setuptools-scm 7 - , pytestCheckHook 4 + , importlib-metadata 5 + , numpy 6 + , pydantic 8 7 , pytest-mypy-plugins 9 - , pytest-cov 10 - , pytest 11 - , mypy 8 + , pytestCheckHook 9 + , pythonOlder 10 + , setuptools-scm 12 11 , typing-extensions 13 - }: buildPythonPackage rec 14 - { 12 + , wheel 13 + , wrapt 14 + }: 15 + 16 + buildPythonPackage rec { 15 17 pname = "psygnal"; 16 - version = "0.3.5"; 18 + version = "0.5.0"; 19 + format = "setuptools"; 20 + 21 + disabled = pythonOlder "3.7"; 22 + 17 23 src = fetchFromGitHub { 18 24 owner = "tlambert03"; 19 25 repo = pname; 20 26 rev = "refs/tags/v${version}"; 21 - sha256 = "sha256-8X6d0KZ61Uy5B68zuxtaimwnDSldWsVrL19iROS4X78="; 27 + hash = "sha256-Hh1HG4VVcNXo62M/4mU3ZcSQNHmalcIDprkwD6/WRf8="; 22 28 }; 23 - buildInputs = [ setuptools-scm ]; 24 - propagatedBuildInputs = [ typing-extensions ]; 25 - checkInputs = [ pytestCheckHook pytest-cov pytest-mypy-plugins ]; 26 - doCheck = false; # mypy checks are failing 29 + 27 30 SETUPTOOLS_SCM_PRETEND_VERSION = version; 28 31 32 + buildInputs = [ 33 + setuptools-scm 34 + wheel 35 + ]; 36 + 37 + propagatedBuildInputs = [ 38 + typing-extensions 39 + ] ++ lib.optionals (pythonOlder "3.8") [ 40 + importlib-metadata 41 + ]; 42 + 43 + checkInputs = [ 44 + numpy 45 + pydantic 46 + pytest-mypy-plugins 47 + pytestCheckHook 48 + wrapt 49 + ]; 50 + 51 + postPatch = '' 52 + substituteInPlace pyproject.toml \ 53 + --replace " --cov=psygnal --cov-report=term-missing" "" 54 + ''; 55 + 56 + pythonImportsCheck = [ 57 + "psygnal" 58 + ]; 59 + 29 60 meta = with lib; { 30 - description = "Pure python implementation of Qt Signals"; 61 + description = "Implementation of Qt Signals"; 31 62 homepage = "https://github.com/tlambert03/psygnal"; 32 63 license = licenses.bsd3; 33 64 maintainers = with maintainers; [ SomeoneSerge ];