2022-01-03 16:56:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, wheel
|
|
|
|
, setuptools
|
|
|
|
, setuptools-scm
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-mypy-plugins
|
|
|
|
, pytest-cov
|
|
|
|
, pytest
|
|
|
|
, mypy
|
|
|
|
, typing-extensions
|
|
|
|
}: buildPythonPackage rec
|
|
|
|
{
|
|
|
|
pname = "psygnal";
|
2022-03-10 19:12:11 +00:00
|
|
|
version = "0.3.3";
|
2022-01-03 16:56:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tlambert03";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-03-10 19:12:11 +00:00
|
|
|
sha256 = "sha256-BQmcA1gD2i4sxROH+a7gStcNK1mXYVerIZ2y6gn8vI8=";
|
2022-01-03 16:56:52 +00:00
|
|
|
};
|
|
|
|
buildInputs = [ setuptools-scm ];
|
|
|
|
propagatedBuildInputs = [ typing-extensions ];
|
|
|
|
checkInputs = [ pytestCheckHook pytest-cov pytest-mypy-plugins ];
|
|
|
|
doCheck = false; # mypy checks are failing
|
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Pure python implementation of Qt Signals";
|
|
|
|
homepage = "https://github.com/tlambert03/psygnal";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ SomeoneSerge ];
|
|
|
|
};
|
|
|
|
}
|